Skip to main content

format_duration

Function format_duration 

Source
pub fn format_duration(seconds: f64) -> String
Expand description

Format a duration in seconds as a human-readable string.

Examples: “45s”, “2m 15s”, “1h 3m 0s”