Companion

object Companion

Properties

MAX
Link copied to clipboard
common
val MAX: Year

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

MAX_VALUE
Link copied to clipboard
common
const val MAX_VALUE: Int = 999_999_999

The latest supported year value.

MIN
Link copied to clipboard
common
val MIN: Year

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

MIN_VALUE
Link copied to clipboard
common
const val MIN_VALUE: Int

The earliest supported year value.

Extensions

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

Gets the current Year from the provided clock.

common
fun Year.Companion.now(): Year

Gets the current Year from the system clock.

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

Gets the current Year from the provided clock.