time::parsing::component

Function parse_year

source
pub(crate) fn parse_year(
    input: &[u8],
    modifiers: Year,
) -> Option<ParsedItem<'_, (i32, bool)>>
Expand description

Parse the “year” component of a Date.