Function chrono::format::parse::parse_rfc3339_relaxed
source · fn parse_rfc3339_relaxed<'a>(
parsed: &mut Parsed,
s: &'a str,
) -> ParseResult<(&'a str, ())>
Expand description
Accepts a relaxed form of RFC3339.
Differences with RFC3339:
- Values don’t require padding to two digits.
- Years outside the range 0…=9999 are accepted, but they must include a sign.
UTC
is accepted as a valid timezone name/offset (for compatibility with the debug format ofDateTime<Utc>
.- There can be spaces between any of the components.
- The colon in the offset may be missing.