Companion

object Companion

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

DEFAULT_SORT_ORDER
Link copied to clipboard
common
val DEFAULT_SORT_ORDER: Comparator<OffsetTime>
Compares by UTC equivalent instant, then time.
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.
TIMELINE_ORDER
Link copied to clipboard
common
val TIMELINE_ORDER: Comparator<OffsetTime>
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.