to Time
Converts a string to a Time.
The string is assumed to be an ISO-8601 time representation in extended format. For example, 05, 05:30, 05:30:00, or 05:30:00.123456789. The output of Time.toString can be safely parsed using this method.
Throws
if parsing fails
if the parsed time is invalid
fun String.toTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Time
Content copied to clipboard
Converts a string to a Time using a specific parser.
A set of predefined parsers can be found in DateTimeParsers.
Throws
if parsing fails
if the parsed time is invalid