Skip to main content

dur_text

Function dur_text 

Source
pub fn dur_text(n: &Value) -> Option<String>
Expand description

n.dur_text(): "2d 3h", "1h 30m", "45s" — days, hours, minutes, seconds, zero parts omitted, "0s" for zero, a leading - for a negative duration, a fractional second kept ("1.5s"). None for a non-number.