pub fn parse(s: &str) -> Result<FixedOffset>
Expand description

Tries to parse [-+]\d\d continued by \d\d. Return FixedOffset if possible. It can parse RFC 2822 legacy timezones. If offset cannot be determined, -0000 will be returned.

The additional colon may be used to parse a mandatory or optional : between hours and minutes, and should return a valid FixedOffset or Err when parsing fails.