Instant
An instant in time with nanosecond-precision.
Types
Functions
Checks if this time point represents the same instant as other. Unlike the equals operator, equality is determined solely by timeline order.
Returns this instant with a number of 24-hour days subtracted from it.
Returns this instant with hours subtracted from it.
Returns this instant with microseconds subtracted from it.
Returns this instant with milliseconds subtracted from it.
Returns this instant with minutes subtracted from it.
Returns this instant with nanoseconds subtracted from it.
Returns this instant with seconds subtracted from it.
Returns this instant with a number of 24-hour days added to it.
Returns this instant with hours added to it.
Returns this instant with microseconds added to it.
Returns this instant with milliseconds added to it.
Returns this instant with minutes added to it.
Returns this instant with nanoseconds added to it.
Returns this instant with seconds added to it.
Properties
The number of additional nanoseconds on top of secondsSinceUnixEpoch.
Extensions
Combines an instant with a UTC offset to create an OffsetDateTime.
Combines an instant with a time zone to create a ZonedDateTime.
Returns this instant, rounded down to match the precision of a given unit.
Returns this instant, rounded down to the nearest hour that satisfies the increment.
Returns this instant, rounded down to the nearest minute that satisfies the increment.
Returns this instant, rounded down to the nearest second that satisfies the increment.
Returns this instant, rounded down to the nearest millisecond that satisfies the increment.
Returns this instant, rounded down to the nearest microsecond that satisfies the increment.
Returns this instant, rounded down to the nearest nanosecond that satisfies the increment.
Returns this instant, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded up to match the precision of a given unit.
Returns this instant, rounded up to the nearest hour that satisfies the increment.
Returns this instant, rounded up to the nearest minute that satisfies the increment.
Returns this instant, rounded up to the nearest second that satisfies the increment.
Returns this instant, rounded up to the nearest millisecond that satisfies the increment.
Returns this instant, rounded up to the nearest microsecond that satisfies the increment.
Returns this instant, rounded up to the nearest nanosecond that satisfies the increment.
Converts this instant to an equivalent Java Instant.
Returns this instant, rounded down to match the precision of a given unit.
Creates an InstantInterval from this instant up to, but not including to.