Skip to main content

parse_date_time

Function parse_date_time 

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

Same date+time parse as parse_local_date_time, plus a required zone on the time half – either a fixed offset (+01:00), a bracketed named zone with no explicit offset ([Europe/London], the true offset derived from the zone for this local date-time, TCK’s Temporal2 [6]), or both together (+02:00[Europe/Stockholm], the explicit offset is trusted for the instant and the bracket is kept only for TzId::Named’s round-trip display).