time::parsing::component

Function parse_year

Source
pub(crate) fn parse_year(
    input: &[u8],
    modifiers: Year,
) -> Option<ParsedItem<'_, (i32, bool)>>
Available on crate feature parsing only.
Expand description

Parse the “year” component of a Date.