Instant |
Instant.minus(long duration) |
Gets a copy of this instant with the specified duration taken away.
|
Instant |
Instant.minus(ReadableDuration duration) |
Gets a copy of this instant with the specified duration taken away.
|
static Instant |
Instant.now() |
Obtains an Instant set to the current system millisecond time.
|
static Instant |
Instant.ofEpochMilli(long epochMilli) |
Obtains an Instant set to the milliseconds from 1970-01-01T00:00:00Z.
|
static Instant |
Instant.ofEpochSecond(long epochSecond) |
Obtains an Instant set to the seconds from 1970-01-01T00:00:00Z.
|
static Instant |
Instant.parse(java.lang.String str) |
Parses an Instant from the specified string.
|
static Instant |
Instant.parse(java.lang.String str,
DateTimeFormatter formatter) |
Parses an Instant from the specified string using a formatter.
|
Instant |
Instant.plus(long duration) |
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.plus(ReadableDuration duration) |
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.toInstant() |
Get this object as an Instant by returning this .
|
Instant |
ReadableInstant.toInstant() |
Get the value as a simple immutable Instant object.
|
Instant |
Instant.withDurationAdded(long durationToAdd,
int scalar) |
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.withDurationAdded(ReadableDuration durationToAdd,
int scalar) |
Gets a copy of this instant with the specified duration added.
|
Instant |
Instant.withMillis(long newMillis) |
Gets a copy of this instant with different millis.
|