jiff::fmt::strtime::parse

Function parse_optional_sign

Source
fn parse_optional_sign<'i>(input: &'i [u8]) -> (i64, &'i [u8])
Expand description

Parses an optional sign from the beginning of the input. If one isn’t found, then the sign returned is positive.

This also returns the remaining unparsed input.