Companion

object Companion

Functions

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

Properties

DEFAULT_SORT_ORDER
Link copied to clipboard
common

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

val DEFAULT_SORT_ORDER: Comparator<OffsetTime>
MAX
Link copied to clipboard
common

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

val MAX: OffsetTime
MIN
Link copied to clipboard
common

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

val MIN: OffsetTime
TIMELINE_ORDER
Link copied to clipboard
common

Compares by timeline order only, ignoring any offset differences.

val TIMELINE_ORDER: Comparator<OffsetTime>

Extensions

now
Link copied to clipboard

Gets the current OffsetTime from the provided clock.

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

Gets the current OffsetTime from the system clock.

common
fun OffsetTime.Companion.now(): OffsetTime

Gets the current OffsetTime from the provided clock.

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