Format
actual fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime>(source)
expect fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime>(source)
Creates a new format for parsing and formatting LocalTime values.
Example:
LocalTime.Format {
hour(); char(':'); minute(); char(':'); second()
optional { char('.'); secondFraction() }
}
Content copied to clipboard
Only parsing and formatting of well-formed values is supported. If the input does not fit the boundaries (for example, second is 60), consider using DateTimeComponents.Format instead.
There is a collection of predefined formats in LocalTime.Formats.
actual fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime>(source)
actual fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime>(source)