pub fn parse_duration(s: &str) -> Result<Duration, FormatError>Expand description
Parses durations like 90d, 12h, 30m, 45s, 2w, 1y, or spelled out (1 day, 3 hours).
pub fn parse_duration(s: &str) -> Result<Duration, FormatError>Parses durations like 90d, 12h, 30m, 45s, 2w, 1y, or spelled out (1 day, 3 hours).