Skip to main content

time_of_day_with_offset

Function time_of_day_with_offset 

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

Extract a time-of-day and (optional) offset from ANY temporal string for time projection: localtime/localdatetime → offset None (the new zone is attached); time/datetime → Some(offset) (a new zone shifts the instant). Drops a named-zone suffix and a date prefix. (ADR 0009)