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

Creates a new format for parsing and formatting LocalDateTime values.

Creates a new format for parsing and formatting LocalDateTime values.

Link copied to clipboard
actual fun orNull(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): LocalDateTime?
actual fun orNull(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): LocalDateTime?

Constructs a LocalDateTime instance from the given date and time components or returns null if a value is out of range.

expect fun orNull(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0): LocalDateTime?
expect fun orNull(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0): LocalDateTime?

Constructs a LocalDateTime instance from the given date and time components or returns null if a value is out of range.

actual fun orNull(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): LocalDateTime?
actual fun orNull(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int): LocalDateTime?

Constructs a LocalDateTime instance from the given date and time components or returns null if a value is out of range.

Link copied to clipboard

A shortcut for calling DateTimeFormat.parse.

expect fun parse(input: CharSequence, format: DateTimeFormat<LocalDateTime> = getIsoDateTimeFormat()): LocalDateTime

A shortcut for calling DateTimeFormat.parse.

A shortcut for calling DateTimeFormat.parse.

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

A shortcut for calling DateTimeFormat.parseOrNull.