Skip to content

//core/io.islandtime/YearMonth/Companion

Companion

common

object Companion

Properties

Name Summary
MAX

common


val MAX: YearMonth

The latest supported YearMonth, which may be used to indicate the "far future".
MIN

common


val MIN: YearMonth

The earliest supported YearMonth, which may be used to indicate the "far past".

Functions

Name Summary
now

common


fun YearMonth.Companion.now(): YearMonth

Gets the current YearMonth from the system clock.

common


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

Gets the current YearMonth from the provided clock.

jvm


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

Gets the current YearMonth from the provided clock.