Skip to main content

iso_datetime

Function iso_datetime 

Source
pub fn iso_datetime<'a>() -> impl Parser<'a, &'a str, TimeExpression, ParserError<'a>> + Clone
Expand description

Parse ISO 8601 datetime format.

Supports:

  • Date only: 2024-01-15
  • Date and time: 2024-01-15T14:30:00
  • With timezone: 2024-01-15T14:30:00Z
  • With offset: 2024-01-15T14:30:00+02:00
  • With fractional seconds: 2024-01-15T14:30:00.123Z