Companion

actual object Companion(source)
expect object Companion(source)
actual 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
actual fun fromMillisecondOfDay(millisecondOfDay: Int): LocalTime
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
actual fun fromMillisecondOfDay(millisecondOfDay: Int): LocalTime
Link copied to clipboard
actual fun fromNanosecondOfDay(nanosecondOfDay: Long): LocalTime
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
actual fun fromNanosecondOfDay(nanosecondOfDay: Long): LocalTime
Link copied to clipboard
actual fun fromSecondOfDay(secondOfDay: Int): LocalTime
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
actual fun fromSecondOfDay(secondOfDay: Int): LocalTime
Link copied to clipboard
actual fun parse(input: CharSequence, format: DateTimeFormat<LocalTime>): LocalTime
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
actual fun parse(input: CharSequence, format: DateTimeFormat<LocalTime>): LocalTime