Companion
object Companion
Content copied to clipboard
Functions
fromMillisecondOfUnixEpoch
Link copied to clipboard
fun fromMillisecondOfUnixEpoch(millisecond: Long, offset: UtcOffset): OffsetDateTime
Content copied to clipboard
fromMillisecondsSinceUnixEpoch
Link copied to clipboard
fun fromMillisecondsSinceUnixEpoch(milliseconds: LongMilliseconds, offset: UtcOffset): OffsetDateTime
Content copied to clipboard
fromSecondOfUnixEpoch
Link copied to clipboard
fun fromSecondOfUnixEpoch(second: Long, nanosecond: Int = 0, offset: UtcOffset): OffsetDateTime
Content copied to clipboard
Creates an OffsetDateTime from the second of the Unix epoch at offset and optionally, the nanosecond of the second.
fromSecondsSinceUnixEpoch
Link copied to clipboard
fun fromSecondsSinceUnixEpoch(seconds: LongSeconds, nanosecondAdjustment: IntNanoseconds = 0.nanoseconds, offset: UtcOffset): OffsetDateTime
Content copied to clipboard
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
DEFAULT_SORT_ORDER
Link copied to clipboard
A Comparator that compares by instant, then date-time.
MAX
Link copied to clipboard
The latest supported OffsetDateTime, which can be used as a "far future" sentinel.
MIN
Link copied to clipboard
The earliest supported OffsetDateTime, which can be used as a "far past" sentinel.
TIMELINE_ORDER
Link copied to clipboard
A Comparator that compares by timeline order only, ignoring any offset differences.
Extensions
now
Link copied to clipboard