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 LocalDate values.

Creates a new format for parsing and formatting LocalDate values.

Creates a new format for parsing and formatting LocalDate values.

Link copied to clipboard
actual fun fromEpochDays(epochDays: Int): LocalDate
actual fun fromEpochDays(epochDays: Long): LocalDate

Returns a LocalDate that is epochDays number of days from the epoch day 1970-01-01.

expect fun fromEpochDays(epochDays: Int): LocalDate
expect fun fromEpochDays(epochDays: Long): LocalDate

Returns a LocalDate that is epochDays number of days from the epoch day 1970-01-01.

actual fun fromEpochDays(epochDays: Int): LocalDate
actual fun fromEpochDays(epochDays: Long): LocalDate

Returns a LocalDate that is epochDays number of days from the epoch day 1970-01-01.

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

Constructs a LocalDate instance from the given date components or returns null if a value is out of range or invalid.

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

Constructs a LocalDate instance from the given date components or returns null if a value is out of range or invalid.

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

Constructs a LocalDate instance from the given date components or returns null if a value is out of range or invalid.

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

A shortcut for calling DateTimeFormat.parse.

expect fun parse(input: CharSequence, format: DateTimeFormat<LocalDate> = getIsoDateFormat()): LocalDate

A shortcut for calling DateTimeFormat.parse.

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

A shortcut for calling DateTimeFormat.parse.

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

A shortcut for calling DateTimeFormat.parseOrNull.