Skip to main content

format_duration

Function format_duration 

Source
pub fn format_duration(d: Duration) -> String
Expand description

Human form of a duration using the same units parse_max_age accepts (2h, 30m, 90s; mixed values fall back to seconds).