Skip to main content

millis_from_iso8601

Function millis_from_iso8601 

Source
pub fn millis_from_iso8601(text: &str) -> Option<i64>
Expand description

Parse an ISO 8601 timestamp back to epoch milliseconds. Accepts the fixed-width YYYY-MM-DDTHH:MM:SSZ form iso8601 emits, a fractional …:SS.fffZ form (only the leading three fraction digits are kept), and a ±HH:MM zone offset in place of the Z. Returns None unless the shape is a date T time split with in-range fields; the fraction is scanned with chars() so untrusted multibyte input never panics.