toLocalTime

fun String.toLocalTime(): LocalTime

Converts this string representing a time value in ISO-8601 format to a LocalTime value.

See LocalTime.parse for examples of time string representations.

Throws

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