|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrdService.util.Time
The class Time allows to manage rrdTool time format
Calendar
, Serialized FormField Summary | |
private java.util.Calendar |
calendar
Calendar representing the time |
private long |
lastTime
Last Time |
Constructor Summary | |
Time()
Constructs a Time with the time ritgth now for client |
|
Time(long time)
Constructs a Time with the specific time for client |
|
Time(long time,
java.util.TimeZone timeZone)
Constructs a Time with the specific time for service |
|
Time(java.util.TimeZone timeZone)
Constructs a Time with the time ritgth now for service |
Method Summary | |
Time |
getLastTime()
lastTime returns the UTC time in second since the creation or the refresh of this time |
long |
getMillisecond()
Returns the UTC time in ms since 1st January 1970 |
Time |
getNowTime()
getNowTime returns the UTC time rigth now in second |
long |
getTime()
getTime returns the UTC time in second since 1st January 1970 |
Time |
refresh()
Refresh done Time point to the current time |
Time |
synchronize(long sec)
synchronize resynchronized the time |
java.lang.String |
toString()
toString returns a string representation of time |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Calendar calendar
private long lastTime
Constructor Detail |
public Time()
public Time(long time)
time
- a long representing the time since 1st January 1970public Time(long time, java.util.TimeZone timeZone)
time
- a long representing the time since 1st January 1970timeZone
- the time zone of referencepublic Time(java.util.TimeZone timeZone)
timeZone
- the time zone of referenceMethod Detail |
public Time getLastTime()
public long getMillisecond()
public Time getNowTime()
public long getTime()
public Time refresh()
public Time synchronize(long sec)
sec
- the number of second to resychronizepublic java.lang.String toString()
toString
in class java.lang.Object
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |