//core/io.islandtime/OffsetTime/Companion
Companion¶
common
object Companion
Properties¶
Name | Summary |
---|---|
DefaultSortOrder | 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 | common val MAX: OffsetTime The largest allowed OffsetTime -- 23:59:59.999999999-18:00 . |
MIN | common val MIN: OffsetTime The smallest allowed OffsetTime -- 00:00+18:00 . |
TimelineOrder | common val TimelineOrder: Comparator<OffsetTime> A Comparator that compares by timeline order only, ignoring any offset differences. |
Functions¶
Name | Summary |
---|---|
now | 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. jvm fun OffsetTime.Companion.now(clock: Clock): OffsetTime Gets the current OffsetTime from the provided clock. |