parse

expect fun parse(input: CharSequence, format: DateTimeFormat<UtcOffset> = getIsoUtcOffestFormat()): UtcOffset(source)

A shortcut for calling DateTimeFormat.parse.

Parses a string that represents a UTC offset and returns the parsed UtcOffset value.

If format is not specified, Formats.ISO is used.

Throws

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