pub fn format_duration(seconds: u64) -> StringExpand description
Format duration into human-readable string.
Converts seconds into a human-readable format (e.g., “1h 30m”, “2d 5h”).
§Examples
assert_eq!(format_duration(90), "1m 30s");
assert_eq!(format_duration(3660), "1h 1m");