pub fn parse_duration(s: &str) -> Result<Duration, DurationParseError>
Expand description

Parses a duration in the format of 45 or 45s 1m. Is overly relaxed and will ignore spaces and mispellings.