pub fn parse_duration(s: &str) -> Result<u64, String>
Parses 30s, 5m, 1h, 2d or a bare number of seconds into whole seconds. Zero and negative values are errors.
30s
5m
1h
2d