Function parse_duration

Source
pub fn parse_duration(dur: &str) -> Result<Duration, String>