parse

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

A shortcut for calling DateTimeFormat.parse.

Parses a string that represents time-of-day and returns the parsed LocalTime value.

See also

for formatting using the default format.

for formatting using a custom format.

Throws

if the text cannot be parsed or the boundaries of LocalTime are exceeded.