Skip to main content

parse_timestamp

Function parse_timestamp 

Source
pub fn parse_timestamp(s: &str) -> Result<i64>
Expand description

Parse an ISO 8601 TIMESTAMP literal (naive YYYY-MM-DD[T ]HH:MM:SS[.ffffff] or with offset/zone). Accepts Z, fixed offsets (+HH:MM), and IANA zone names (America/New_York). 'infinity' / '-infinity' map to sentinel values.