section

Function section 

Source
pub fn section(input: &[u8]) -> IResult<&[u8], Option<DateTime<FixedOffset>>>
Expand description

Read datetime

date-time       =   [ day-of-week "," ] date time [CFWS]
time            =   time-of-day zone

ยง@FIXME - known bugs

  • if chrono fails, Option::None is silently returned instead of failing the parser
  • -0000 means NaiveDateTime, a date without a timezone while this library interprets it as +0000 aka UTC.
  • Obsolete military zones should be considered as NaiveTime due to an error in RFC0822 but are interpreted as their respective timezone according to the RFC5322 definition