Skip to main content

parse_timestamp

Function parse_timestamp 

Source
pub fn parse_timestamp(ts_str: &str) -> Option<UnixNanos>
Expand description

Parses a timestamp string into [UnixNanos].

Accepts millisecond integers (“1703875200000”), second integers (“1703875200”), and RFC3339 strings (“2024-01-01T00:00:00Z”).