time::parsing::component

Function parse_period

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

Parse the “period” component of a Time. Required if the hour is on a 12-hour clock.