Module parsed

Source
Expand description

A collection of parsed date and time items. They can be constructed incrementally while being checked for consistency.

Structs§

Parsed
A type to hold parsed fields of date and time that can check all fields are consistent.

Functions§

resolve_week_date 🔒
Create a NaiveDate when given a year, week, weekday, and the definition at which day of the week a week starts.
set_if_consistent 🔒
Checks if old is either empty or has the same value as new (i.e. “consistent”), and if it is empty, set old to new as well.