Skip to main content

format_duration

Function format_duration 

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

Render a duration as the largest units that divide it evenly, e.g. 90s as 1m30s. Zero has no components, so it is spelled out explicitly.