pub fn parse_duration(input: &str) -> Result<i64, String>Expand description
Parses a human-friendly duration string into total seconds.
Supported formats: “2h30m”, “45m”, “1h”, “90s”, “1h30m15s”, “2h 30m”.
Units: h (hours), m (minutes), s (seconds).
At least one unit must be present.