| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Simple container for UTC time data
Field Summary | |
final static int | DATE Constant to represent the date |
final static int | HOUR Constant to represent the hour of day (24 hour format) |
final static int | MILLISECOND Constant to represent the millisecond of the second |
final static int | MINUTE Constant to represent the minute of the hour |
final static int | MONTH Constant to represent the month |
final static int | SECOND Constant to represent the second of the minute |
final static int | YEAR Constant to represent the year |
Constructor Summary | |
UTCContainer(int year, int month, int date, int hour, int minute, int second, int millis) Constructs a UTCContainer object from the given parameters |
Method Summary | |
Object | clone() |
boolean | equals(UTCContainer otherTime) Method to provide a mechanism for determining if two times are the same |
int | get(int field) Method to allow retreival of individual fields from the time/date |
boolean | isAfter(UTCContainer time) Method to provide a way of determining if a UTCContainer object represents a time before the time this UTCContainer instance represents. |
boolean | isBefore(UTCContainer otherTime) Method to provide a way of determining if a UTCContainer object represents a time after the time this UTCContainer instance represents |
void | set(int field, int value) Method to allow manual setting of date/time fields |
void | setAccuracy(int accuracy) Method to change accuracy of UTCTime object. |
String | toString() Overrides default Object.toString() |
Field Detail |
public final static int DATE
public final static int HOUR
public final static int MILLISECOND
public final static int MINUTE
public final static int MONTH
public final static int SECOND
public final static int YEAR
Constructor Detail |
public UTCContainer(int year, int month, int date, int hour, int minute, int second, int millis)
Method Detail |
public Object clone()
public boolean equals(UTCContainer otherTime)
public int get(int field)
public boolean isAfter(UTCContainer time)
public boolean isBefore(UTCContainer otherTime)
public void set(int field, int value)
public void setAccuracy(int accuracy)
public String toString()
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |