Skip to main content

parse

Function parse 

Source
pub fn parse(s: &str) -> Result<SystemTime>
Expand description

Strict parser for the canonical form (second precision accepted via normalize).

Validates the calendar as well as the shape: 2026-02-30T00:00:00.000000Z has canonical shape but is not a date, and accepting it would let a timestamp exist that no round-trip can reproduce.