parse_date_part

Function parse_date_part 

fn parse_date_part(date: &str) -> Result<(DateTime<Utc>, DateTime<Utc>)>
Expand description

Parses the date part of a log file name.

This function aims to support the formats used by the tracing-appender crate:

  • [year]-[month]-[day]-[hour]-[minute]
  • [year]-[month]-[day]-[hour]
  • [year]-[month]-[day]

Returns the half-open interval [start, end) of timestamps covered by the log file.