Function parse_with_timezone

Source
pub fn parse_with_timezone<Tz2: TimeZone>(
    input: &str,
    tz: &Tz2,
) -> Result<DateTime<Utc>>
Expand description

Similar to parse(), this function takes a datetime string and a custom chrono::TimeZone, and tries to parse the datetime string. When timezone is not given in the string, this function will assume and parse the datetime by the custom timezone provided in this function’s arguments.