|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.timeindexing.time.Clock
public class Clock
A simple wall clock class that returns AbsoluteTimestamps.
| Field Summary | |
|---|---|
static Timestamp |
TICK
A single tick of a clock. |
static Clock |
time
A publically usable clock that tells the time. |
static Timestamp |
ZERO
The zero point on the clock. |
| Constructor Summary | |
|---|---|
Clock()
Construct a Clock |
|
Clock(java.util.TimeZone tz)
Construct a Clock in a specific TimeZone |
|
| Method Summary | |
|---|---|
Timestamp |
asMicros()
Get the current time resolved to microseconds. |
Timestamp |
asMillis()
Get the current time resolved to milliseconds. |
Timestamp |
asNanos()
Get the current time resolved to nanoseconds. |
Timestamp |
asScale(Scale scale)
Convert a Timestamp to a specific Scale. |
Timestamp |
asSeconds()
Get the current time resolved to seconds. |
Timestamp |
time()
Return the current time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Clock time
public static final Timestamp TICK
public static final Timestamp ZERO
| Constructor Detail |
|---|
public Clock()
public Clock(java.util.TimeZone tz)
| Method Detail |
|---|
public Timestamp time()
public Timestamp asScale(Scale scale)
public Timestamp asSeconds()
public Timestamp asMillis()
public Timestamp asMicros()
public Timestamp asNanos()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||