Combines this instant with an offset to create an OffsetDateTime.
Combines this instant with a time-zone to create a ZonedDateTime.
Gets the value of the specified field from this instant as an int.
Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z.
Gets the value of the specified field from this instant as a long.
Gets the number of nanoseconds, later along the time-line, from the start of the second.
Checks if this instant is after the specified instant.
Checks if this instant is before the specified instant.
Returns a copy of this instant with the specified amount subtracted.
Returns a copy of this instant with the specified amount subtracted.
Returns a copy of this instant with the specified duration in milliseconds subtracted.
Returns a copy of this instant with the specified duration in nanoseconds subtracted.
Returns a copy of this instant with the specified duration in seconds subtracted.
Returns a copy of this instant with the specified amount added.
Returns a copy of this instant with the specified amount added.
Returns a copy of this instant with the specified duration in milliseconds added.
Returns a copy of this instant with the specified duration in nanoseconds added.
Returns a copy of this instant with the specified duration in seconds added.
Queries this instant using the specified query.
Gets the range of valid values for the specified field.
Converts this instant to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z.
Returns a copy of this Instant truncated to the specified unit.
Calculates the amount of time until another instant in terms of the specified unit.
Returns a copy of this instant with the specified field set to a new value.
Static
fromObtains an instance of Instant from a temporal object.
Static
nowStatic
ofObtains an instance of Instant using milliseconds from the epoch of 1970-01-01T00:00:00Z.
Static
ofObtains an instance of Instant using seconds from the epoch of 1970-01-01T00:00:00Z.
Obtains an instance of Instant using seconds from the epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second.
Static
parseObtains an instance of Instant from a text string such as 2007-12-03T10:15:30.00Z.
An instantaneous point on the time-line.
See java.time.Instant for full documentation