Skip to main content

try_parse_time_zone_offset

Function try_parse_time_zone_offset 

Source
pub fn try_parse_time_zone_offset(
    input: &str,
) -> Result<TimeZoneOffset, TimeZoneParseError>
Expand description

Parses a fixed time zone offset with diagnostic errors.

ยงErrors

Returns TimeZoneParseError when the input is empty, contains whitespace, is malformed, or falls outside the civil -14:00..=+14:00 range.