Skip to main content

parse_timestamp_literal_tz_ordered

Function parse_timestamp_literal_tz_ordered 

Source
pub fn parse_timestamp_literal_tz_ordered(
    s: &str,
    order: DateOrder,
) -> Option<(i64, bool)>
Expand description

v7.39 (tz epic) — like parse_timestamp_literal_ordered but also reports whether the literal carried an explicit offset. A naive literal’s micros are the WALL clock (caller localises against the session zone for a timestamptz); an offset-bearing literal’s are UTC already.