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

MAX
Link copied to clipboard
common

The latest supported Year, which can be used as a "far future" sentinel.

val MAX: Year
MAX_VALUE
Link copied to clipboard
common

The latest supported year value.

const val MAX_VALUE: Int
MIN
Link copied to clipboard
common

The earliest supported Year, which can be used as a "far past" sentinel.

val MIN: Year
MIN_VALUE
Link copied to clipboard
common

The earliest supported year value.

const val MIN_VALUE: Int

Extensions

now
Link copied to clipboard

Gets the current Year from the provided clock.

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

Gets the current Year from the system clock.

common
fun Year.Companion.now(): Year

Gets the current Year from the provided clock.

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