mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
9bf82fa7ff
Technically speaking, negative duration is not valid ISO 8601, but we need to print it anyway. If `d` is a positive duration with the output `xxxxxxx`, then the expected output of negative `-d` value is `-xxxxxxx`. I.e. the idea is to print negative durations as positive with a leading minus sign. Closes #18181.