tc39 / proposal-intl-duration-format

https://tc39.es/proposal-intl-duration-format
MIT License
163 stars 18 forks source link

Editorial: Add negative sign when value is 0 #184

Closed anba closed 7 months ago

anba commented 8 months ago

To handle the case:

new Intl.DurationFormat("en", {hoursDisplay: "always"}).format({hours: 0, seconds: -1})

which should output "-0 hr, 1 sec".