Companion
Functions
Creates an OffsetDateTime from the millisecond of the Unix epoch at offset.
Creates an OffsetDateTime from a duration of milliseconds relative to the Unix epoch at offset.
Creates an OffsetDateTime from the second of the Unix epoch at offset and optionally, the nanosecond of the second.
Creates an OffsetDateTime from a duration of seconds relative to the Unix epoch at offset, optionally, with some number of additional nanoseconds added to it.
Properties
A Comparator that compares by instant, then date-time. Using this Comparator guarantees a deterministic order when sorting.
The latest supported OffsetDateTime, which can be used as a "far future" sentinel.
The earliest supported OffsetDateTime, which can be used as a "far past" sentinel.
A Comparator that compares by timeline order only, ignoring any offset differences.
Extensions
Gets the current OffsetDateTime from the provided clock.
Gets the current OffsetDateTime from the system clock.
Gets the current OffsetDateTime from the provided clock.