Skip to main content

time_offset_zone

Function time_offset_zone 

Source
pub fn time_offset_zone(s: &str) -> Option<(i64, Option<i32>, Option<String>)>
Expand description

Extract (nanoseconds-of-day, optional offset-seconds, optional zone label) from ANY temporal string — localtime/localdatetime → offset/zone None; time → Some(offset), no zone; datetime → offset + optional zone. Used when projecting a datetime from another value. (ADR 0009)