|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--waba.sys.Time
Time identifies a date and time.
Here is an example of Time being used to display the current date:
Time t = new Time(); ... g.drawText("Today is " + t.year + "/" + t.month + "/" + t.day);
Field Summary | |
int |
day
The day in the range of 1 to the last day in the month. |
int |
hour
The hour in the range of 0 to 23. |
int |
millis
Milliseconds in the range of 0 to 999. |
int |
minute
The minute in the range of 0 to 59. |
int |
month
The month in the range of 1 to 12. |
int |
second
The second in the range of 0 to 59. |
int |
year
The year as its full set of digits (year 2010 is 2010). |
Constructor Summary | |
Time()
Constructs a time object set to the current date and time. |
|
Time(int year,
int month,
int day,
int hour,
int minute,
int second,
int millis)
Constructs a new time with the given values. |
|
Time(long t)
Constructs a time object from the given value. |
Method Summary | |
boolean |
equals(Object o)
The equals method for class Object implements the most discriminating possible equivalence relation on objects; that is, for any reference values x and y, this method returns true if and only if x and y refer to the same object (x==y has the value true). |
long |
getTimeLong()
Returns the time in the format YYYYMMDDHHMMSS as a long value. |
String |
toString()
returns the time in format specified in waba.sys.Settings. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
wait,
wait |
Field Detail |
public int year
public int month
public int day
public int hour
public int minute
public int second
public int millis
Constructor Detail |
public Time()
public Time(long t)
public Time(int year, int month, int day, int hour, int minute, int second, int millis)
Method Detail |
public long getTimeLong()
public String toString()
public boolean equals(Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |