Skip to main content

normalize_utc_offset

Function normalize_utc_offset 

Source
pub fn normalize_utc_offset(s: &str) -> Option<String>
Expand description

Normalize a fixed UTC offset string to AFDATA canonical form.

Returns "UTC" for zero offset. Non-zero offsets return +HH:MM or -HH:MM. This helper handles fixed offsets only; IANA timezone names and DST rules are intentionally out of scope.