pub fn parse_datetime(datetime_string: &str) -> color_eyre::Result<DateTime<Utc>> {
    if datetime_string.to_ascii_lowercase() == "today" {
        Ok(Local::now().date().and_hms(0, 0, 0).with_timezone(&Utc))
    } else {
        Ok(parse_date_string(datetime_string, Local::now(), Dialect::Uk)?.with_timezone(&Utc))
    }
}
/// Makes `DateTime` from a string, can be colloquial like "last Friday 8pm"
Makes `DateTime` from a string, can be colloquial like "last Friday 8pm"
Makes ` DateTime ` from a string can be colloquial like " last Friday 8pm "
pub fn parse_datetime(datetime_string: &str) -> color_eyre::Result<DateTime<Utc>> {
    if datetime_string.to_ascii_lowercase() == "today" {
        Ok(Local::now().date().and_hms(0, 0, 0).with_timezone(&Utc))
    } else {
        Ok(parse_date_string(datetime_string, Local::now(), Dialect::Uk)?.with_timezone(&Utc))
    }
}
pub fn parse_datetime ( datetime_string : & str ) -> color_eyre :: Result < DateTime < Utc > > { if datetime_string . to_ascii_lowercase ( ) == " " { Ok ( Local :: now ( ) . date ( ) . and_hms ( 0 , 0 , 0 ) . with_timezone ( & Utc ) ) } else { Ok ( parse_date_string ( datetime_string , Local :: now ( ) , Dialect :: Uk ) ? . with_timezone ( & Utc ) ) } }
Makes `DateTime` from a string, can be colloquial like "last Friday 8pm"
Makes ` DateTime ` from a string can be colloquial like " last Friday 8pm "
datetime_string
&str
datetime_string
&str