Function time::parsing::component::parse_offset_hour
source · pub(crate) fn parse_offset_hour(
input: &[u8],
modifiers: OffsetHour,
) -> Option<ParsedItem<'_, (i8, bool)>>
Expand description
Parse the “hour” component of a UtcOffset
.
Returns the value and whether the value is negative. This is used for when “-0” is parsed.