Function ambient_time::parse_duration
source · 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.