Companion

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

Functions

Link copied to clipboard

Creates a new format for parsing and formatting LocalTime values.

Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
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