Companion

object Companion

Properties

DefaultSortOrder
Link copied to clipboard
common
val DefaultSortOrder: Comparator<OffsetTime>

A Comparator that compares by UTC equivalent instant, then time. Using this Comparator guarantees a deterministic order when sorting.

MAX
Link copied to clipboard
common
val MAX: OffsetTime

The largest allowed OffsetTime -- 23:59:59.999999999-18:00.

MIN
Link copied to clipboard
common
val MIN: OffsetTime

The smallest allowed OffsetTime -- 00:00+18:00.

TimelineOrder
Link copied to clipboard
common
val TimelineOrder: Comparator<OffsetTime>

A Comparator that compares by timeline order only, ignoring any offset differences.

Extensions

now
Link copied to clipboard
fun OffsetTime.Companion.now(clock: Clock): OffsetTime

Gets the current OffsetTime from the provided clock.

common
fun OffsetTime.Companion.now(): OffsetTime

Gets the current OffsetTime from the system clock.

common
fun OffsetTime.Companion.now(clock: Clock): OffsetTime

Gets the current OffsetTime from the provided clock.