|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.time.MillisecondTimestamp
A timestamp that only has significant data down to millisecond level. The Java runtime currently goes down to milliseconds, so these are easy to get in Java.
Field Summary | |
static long |
BEFORE_EPOCH
|
Fields inherited from interface com.timeindexing.time.Timestamp |
ELAPSED_MICROSECOND, ELAPSED_MICROSECOND_SIGN, ELAPSED_MILLISECOND, ELAPSED_MILLISECOND_SIGN, ELAPSED_NANOSECOND, ELAPSED_NANOSECOND_SIGN, ELAPSED_SECOND, ELAPSED_SECOND_SIGN, ELAPSED_UNITS, ELAPSED_UNITS_SIGN, EXTENDED, EXTENDED_2, EXTENDED_3, EXTENDED_4, MICROSECOND, MICROSECOND_SIGN, MILLISECOND, MILLISECOND_SIGN, NANOSECOND, NANOSECOND_SIGN, SECOND, SECOND_SIGN, SPARE_3E, SPARE_3E_SIGN, SPARE_FD, SPARE_FD_SIGN, SPARE_FE, SPARE_FE_SIGN, TOP_2_MASK, TOP_4_MASK, TOP_6_MASK, TOP_8_MASK, ZERO |
Constructor Summary | |
MillisecondTimestamp()
Construct a MillisecondTimestamp with 'now' as the timestamp. |
|
MillisecondTimestamp(java.util.Date date)
Construct a MillisecondTimestamp from a Date object |
|
MillisecondTimestamp(long ts)
Construct a MillisecondTimestamp from a number of milliseconds. |
|
MillisecondTimestamp(long seconds,
int nanoseconds)
Construct a MillisecondTimestamp from a number of seconds and a number of nanoseconds. |
Method Summary | |
int |
getNanoSeconds()
Get the number of nanoseconds for this timestamp |
long |
getSeconds()
Get the number of seconds |
boolean |
isAfterEpoch()
Is the time after the Epoch. |
boolean |
isBeforeEpoch()
Is the time before the Epoch. |
java.lang.String |
toString()
Get the toString() version of a MillisecondTimestamp. |
long |
value()
Get the raw value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long BEFORE_EPOCH
Constructor Detail |
public MillisecondTimestamp()
public MillisecondTimestamp(long ts)
public MillisecondTimestamp(long seconds, int nanoseconds)
public MillisecondTimestamp(java.util.Date date)
Method Detail |
public long getSeconds()
getSeconds
in interface Timestamp
public int getNanoSeconds()
getNanoSeconds
in interface Timestamp
public java.lang.String toString()
public long value()
value
in interface Value
public boolean isAfterEpoch()
isAfterEpoch
in interface AbsoluteTimestamp
public boolean isBeforeEpoch()
isBeforeEpoch
in interface AbsoluteTimestamp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |