Function parse_utc

Source
pub fn parse_utc(s: &str) -> Result<DateTime<Utc>, Error>
Expand description

Attempts to parse the provided string into a DateTime<FixedOffset> but convert it to a DateTime<Utc> prior to returning automatically.

ยงErrors

Will return Err when an invalid or unsupported DateTime format is provided.