public interface Timestamp
| Modifier and Type | Field and Description |
|---|---|
static Timestamp |
NONE
The
Timestamp from the number of microseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z set to none. |
| Modifier and Type | Method and Description |
|---|---|
static Timestamp |
fromMicros(long microseconds)
Creates a
Timestamp from the number of microseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z. |
static Timestamp |
fromMillis(long milliseconds)
Creates a
Timestamp from the number of milliseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z. |
static Timestamp |
fromSeconds(long seconds)
Creates a
Timestamp from the number of seconds of UTC time since Unix epoch
1970-01-01T00:00:00Z. |
default long |
toMicros()
Returns the number of microseconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
|
default long |
toMillis()
Returns the number of milliseconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
|
default long |
toSeconds()
Returns the number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
|
static final Timestamp NONE
Timestamp from the number of microseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z set to none.static Timestamp fromSeconds(long seconds)
Timestamp from the number of seconds of UTC time since Unix epoch
1970-01-01T00:00:00Z.seconds - the number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00ZTimestamp from the number of seconds of UTC time since Unix epochjava.lang.IllegalArgumentException - when the seconds argument is negativestatic Timestamp fromMillis(long milliseconds)
Timestamp from the number of milliseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z.milliseconds - the number of milliseconds of UTC time since Unix epoch
1970-01-01T00:00:00ZTimestamp from the number of milliseconds of UTC time since Unix epochjava.lang.IllegalArgumentException - when the milliseconds argument is negativestatic Timestamp fromMicros(long microseconds)
Timestamp from the number of microseconds of UTC time since Unix epoch
1970-01-01T00:00:00Z.microseconds - the number of microseconds of UTC time since Unix epoch
1970-01-01T00:00:00ZTimestamp from the number of microseconds of UTC time since Unix epochjava.lang.IllegalArgumentException - when the microseconds argument is negativedefault long toMicros()
default long toMillis()
default long toSeconds()