|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.util.Timestamp
public class Timestamp
provides easy access to UTC ms from the epoch
Constructor Summary | |
---|---|
Timestamp()
sets the timestamp to the current time |
|
Timestamp(java.util.GregorianCalendar c)
sets the timestamp to the specified time |
|
Timestamp(long m)
sets the timestamp to the specified time |
Method Summary | |
---|---|
int |
compareTo(Timestamp t)
Compares this Timestamp with the specified Timestamp: earliest timestamp will come first. |
boolean |
equals(java.lang.Object o)
|
static long |
getCurrentTime()
gets current number of ms since the epoch |
long |
getMyTime()
gets the number of milliseconds since the epoch for this timestamp |
long |
getTime(java.util.GregorianCalendar c)
gets the number of milliseconds from the epoch to the specified date/time c |
java.lang.String |
toFNSafeString()
returns the date/time of this timestamp as yyyy-MM-dd_HH-mm-ss |
java.lang.String |
toString()
returns the date/time of this timestamp as dd-MMM-yyyy HH:mm:ss |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Timestamp()
public Timestamp(java.util.GregorianCalendar c)
c
- date/time to set this timestamp equal topublic Timestamp(long m)
m
- the number of milliseconds since the epochMethod Detail |
---|
public int compareTo(Timestamp t)
t
- the Timestamp to compare this to
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public long getTime(java.util.GregorianCalendar c)
c
- date/time to set this timestamp equal to
public static long getCurrentTime()
public java.lang.String toFNSafeString()
public java.lang.String toString()
toString
in class java.lang.Object
public long getMyTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |