pub fn parse_duration_to_secs(s: &str) -> Result<i64>
Parse a duration string like “1h”, “30m”, “300s”, “300” into seconds.