Skip to main content

duration

Function duration 

Source
pub fn duration(seconds: i64) -> String
Expand description

A length of time in its largest unit, to a tenth past seconds so it fits a narrow column: 12s, 2.5m, 1.5h, -2.1d.