Skip to main content

duration_long_with

Function duration_long_with 

Source
pub fn duration_long_with(secs: u64, units: DurationUnits<'_>) -> String
Expand description

duration_long with the caller’s own unit labels, for a localised UI.

Two units at most, the larger first: seconds are dropped once the estimate is an hour or more.