Skip to main content

duration_iso

Function duration_iso 

Source
pub fn duration_iso(value: i64, unit: TimeUnit, out: &mut String)
Expand description

value units as ISO 8601 text, the way Polars’ JSON writer spells a duration (chrono’s TimeDelta display): whole seconds and the fraction’s significant digits, P0D for zero, a leading - when negative. Computed here rather than through chrono, whose range ends short of i64::MIN ms.