public final class Timestamps
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<com.google.protobuf.Timestamp> |
COMPARATOR
A
Comparator of Timestamp |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Timestamp |
fromEpoch(long epochMillis)
Obtain the current time from the unix epoch
|
static com.google.protobuf.Timestamp |
now(com.google.api.client.util.Clock clock)
Obtain the current time from a
Clock |
public static java.util.Comparator<com.google.protobuf.Timestamp> COMPARATOR
Comparator of Timestamppublic static com.google.protobuf.Timestamp now(com.google.api.client.util.Clock clock)
Clockclock - gives the current timeTimestamp corresponding to the ticker's current valuepublic static com.google.protobuf.Timestamp fromEpoch(long epochMillis)
epochMillis - gives the current time in milliseconds since since the epochTimestamp corresponding to the ticker's current value