Skip to main content

parse

Function parse 

Source
pub fn parse(raw: &str) -> Option<Timestamp>
Expand description

Read one of the date spellings a vault may hold.

Accepted: YYYY-MM-DD, optionally followed by T or a space and HH:MM[:SS], optionally followed by Z or ±HH[:]MM. Trailing fractional seconds are read and dropped — neither output grammar carries them.

None for anything else, including a well-formed string naming a day that does not exist (2026-02-30): a date that cannot be placed on a calendar cannot be given a weekday, and RFC 822 needs one.