Skip to main content

concise_duration

Function concise_duration 

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

Formats duration approximately, with a unit (SI units, days, weeks), using the shortest possible representation with up to one fractional digit.

Rounds towards zero.