pub fn parse_duration(input: &str) -> Result<Duration>Expand description
Parse a human-readable duration such as "7d", "24h", "30m", "45s".
The suffix is required and may be one of s, m, h, d, w.
Whitespace between the number and the suffix is allowed.