public class StandardTimestamp extends Object implements Timestamp
| Constructor and Description |
|---|
StandardTimestamp(long sinceEpoch,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Timestamp o) |
boolean |
equals(Object obj) |
TimeUnit |
getNativeUnit()
Returns the native unit used by this Timestamp.
|
int |
hashCode() |
long |
sinceEpoch(TimeUnit target)
Returns the length of time since UNIX epoch in the given
TimeUnit. |
String |
toString() |
public StandardTimestamp(long sinceEpoch,
TimeUnit unit)
public int compareTo(Timestamp o)
compareTo in interface Comparable<Timestamp>public long sinceEpoch(TimeUnit target)
TimestampTimeUnit.sinceEpoch in interface Timestamppublic TimeUnit getNativeUnit()
TimestampgetNativeUnit in interface TimestampCopyright © 2012–2014. All rights reserved.