- fromMillis
Create a Timestamp from the number of milliseconds elapsed from the epoch.
- toMillis
Convert a Timestamp to the number of milliseconds elapsed from the epoch.The
result will be rounded
- toString
Convert Timestamp to RFC 3339 date string format. The output will always be
Z-normalized and uses 3,
- parse
Parse from RFC 3339 date string to Timestamp. This method accepts all outputs of
#toString(Timestamp
- fromNanos
Create a Timestamp from the number of nanoseconds elapsed from the epoch.
- isValid
Returns true if the given Timestamp is valid. The seconds value must be in the
range [-62,135,596,80
- between
Calculate the difference between two timestamps.
- checkValid
Throws an IllegalArgumentException if the given Timestamp is not valid.
- compare
Compares two timestamps. The value returned is identical to what would be
returned by: Timestamps.co
- formatNanos
Format the nano part of a timestamp or a duration.
- fromMicros
Create a Timestamp from the number of microseconds elapsed from the epoch.
- normalizedTimestamp