Skip to main content

parse

Function parse 

Source
pub fn parse(s: &str) -> Result<Duration>
Expand description

Parse <n><unit> where unit is d/h/m/s (e.g. 3d, 12h, 90s). n must be a positive integer.