Skip to main content

parse_duration

Function parse_duration 

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

Parse 30s, 500ms, 2m, 1h, or a bare number of seconds.