pub fn parse(input: &str) -> Result<DateTime<Utc>>Expand description
This function tries to recognize the input datetime string with a list of accepted formats.
When timezone is not provided, this function assumes it’s a chrono::Local datetime. For
custom timezone, use parse_with_timezone() instead.If all options are exhausted,
parse() will return an error to let the caller know that no formats were matched.
A date-only input (no time of day, e.g. 2021-02-21) is the written date at the current
UTC time: its UTC date is always the written date, and the timezone is not applied to it.