tc39 / proposal-intl-duration-format

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

Normative: Only display negative signs on the largest unit when formatting negative Durations #176

Closed ben-allen closed 8 months ago

ben-allen commented 10 months ago

fix #169

sffc commented 9 months ago

TG2 approval: https://github.com/tc39/ecma402/blob/master/meetings/notes-2023-11-16.md#format-of-negative-durations-169

ryzokuken commented 9 months ago

2023-11-28: This PR achieved TC39-TG1 consensus.

FrankYFTang commented 4 months ago

Do we have a test for this?

FrankYFTang commented 4 months ago

The following tests in test262 need to be updated after the landing of the PR

test262/intl402/DurationFormat/prototype/format/negative-duration-style-default-en test262/intl402/DurationFormat/prototype/format/negative-durationstyle-long-en test262/intl402/DurationFormat/prototype/format/negative-durationstyle-digital-en test262/intl402/DurationFormat/prototype/format/negative-durationstyle-narrow-en test262/intl402/DurationFormat/prototype/format/negative-duration-style-short-en test262/intl402/DurationFormat/prototype/formatToParts/negative-duration-formatToParts-style-digital-en test262/intl402/DurationFormat/prototype/formatToParts/negative-duration-formatToParts-style-long-en test262/intl402/DurationFormat/prototype/formatToParts/negative-duration-formatToParts-style-narrow-en test262/intl402/DurationFormat/prototype/formatToParts/negative-duration-formatToParts-style-short-en test262/intl402/DurationFormat/prototype/formatToParts/negative-duration-formatToParts-style-default-en