Skip to main content

format_duration

Function format_duration 

Source
pub fn format_duration(secs: u64) -> String
Expand description

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

Examples: “45s”, “3m 12s”, “2h 15m”, “1d 6h”