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

Creates a new format for parsing and formatting LocalTime values.

Creates a new format for parsing and formatting LocalTime values.

Link copied to clipboard
actual fun fromMillisecondOfDay(millisecondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of milliseconds since the start of a calendar day. The sub-millisecond parts of the LocalTime will be zero.

expect fun fromMillisecondOfDay(millisecondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of milliseconds since the start of a calendar day. The sub-millisecond parts of the LocalTime will be zero.

actual fun fromMillisecondOfDay(millisecondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of milliseconds since the start of a calendar day. The sub-millisecond parts of the LocalTime will be zero.

Link copied to clipboard
actual fun fromNanosecondOfDay(nanosecondOfDay: Long): LocalTime

Constructs a LocalTime that represents the specified number of nanoseconds since the start of a calendar day.

expect fun fromNanosecondOfDay(nanosecondOfDay: Long): LocalTime

Constructs a LocalTime that represents the specified number of nanoseconds since the start of a calendar day.

actual fun fromNanosecondOfDay(nanosecondOfDay: Long): LocalTime

Constructs a LocalTime that represents the specified number of nanoseconds since the start of a calendar day.

Link copied to clipboard
actual fun fromSecondOfDay(secondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of seconds since the start of a calendar day. The fractional parts of the second will be zero.

expect fun fromSecondOfDay(secondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of seconds since the start of a calendar day. The fractional parts of the second will be zero.

actual fun fromSecondOfDay(secondOfDay: Int): LocalTime

Constructs a LocalTime that represents the specified number of seconds since the start of a calendar day. The fractional parts of the second will be zero.

Link copied to clipboard
actual fun orNull(hour: Int, minute: Int, second: Int, nanosecond: Int): LocalTime?

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

expect fun orNull(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0): LocalTime?

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

actual fun orNull(hour: Int, minute: Int, second: Int, nanosecond: Int): LocalTime?

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

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

A shortcut for calling DateTimeFormat.parse.

expect fun parse(input: CharSequence, format: DateTimeFormat<LocalTime> = getIsoTimeFormat()): LocalTime

A shortcut for calling DateTimeFormat.parse.

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

A shortcut for calling DateTimeFormat.parse.

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

A shortcut for calling DateTimeFormat.parseOrNull.