Companion

actual object Companion(source)
expect object Companion(source)
actual object Companion(source)

Functions

Link copied to clipboard

Creates a new format for parsing and formatting YearMonth values.

Creates a new format for parsing and formatting YearMonth values.

Creates a new format for parsing and formatting YearMonth values.

Link copied to clipboard
actual fun orNull(year: Int, month: Int): YearMonth?
actual fun orNull(year: Int, month: Month): YearMonth?

Constructs a YearMonth instance from the given year-month components or returns null if a value is out of range.

expect fun orNull(year: Int, month: Int): YearMonth?
expect fun orNull(year: Int, month: Month): YearMonth?

Constructs a YearMonth instance from the given year-month components or returns null if a value is out of range.

actual fun orNull(year: Int, month: Int): YearMonth?
actual fun orNull(year: Int, month: Month): YearMonth?

Constructs a YearMonth instance from the given year-month components or returns null if a value is out of range.

Link copied to clipboard
actual fun parse(input: CharSequence, format: DateTimeFormat<YearMonth>): YearMonth

A shortcut for calling DateTimeFormat.parse.

expect fun parse(input: CharSequence, format: DateTimeFormat<YearMonth> = Formats.ISO): YearMonth

A shortcut for calling DateTimeFormat.parse.

actual fun parse(input: CharSequence, format: DateTimeFormat<YearMonth>): YearMonth

A shortcut for calling DateTimeFormat.parse.

Link copied to clipboard
expect fun YearMonth.Companion.parseOrNull(input: CharSequence, format: DateTimeFormat<YearMonth> = YearMonth.Formats.ISO): YearMonth?

A shortcut for calling DateTimeFormat.parseOrNull.