pub fn parse_duration_secs(s: &str) -> Result<u64, Box<dyn Error>>Expand description
Parse a duration string into seconds.
Recognised suffixes: s (seconds), m (minutes), h (hours),
d (days), w (weeks). An unsuffixed value is seconds.
Examples: "30s" → 30, "5m" → 300, "24h" → 86400, "7d" → 604800,
"2w" → 1209600, "3600" → 3600.