use dateparser::DateTimeUtc; use std::error::Error; fn main() -> Result<(), Box> { let parsed = "2021-05-14 18:51 PDT".parse::()?.0; println!("{:#?}", parsed); Ok(()) }