Skip to main content

parse_duration

Function parse_duration 

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

Parses a duration as Go and the registry write it, 30s, 90m, 168h, or in days: 7d.