Skip to content

Commit

Permalink
updated properties of Intl.DurationFormat instances to reflect new in…
Browse files Browse the repository at this point in the history
…ternal "fractional" style
  • Loading branch information
ben-allen committed Jan 15, 2024
1 parent 3c4dcae commit eea517b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ contributors: Ujjwal Sharma, Younies Mahmoud
1. Set _displayDefault_ to *"auto"*.
1. If _unit_ is one of *"milliseconds"*, *"microseconds"*, or *"nanoseconds"*, then
1. Set _style_ to *"fractional"*.
1. Set _displayDefault_ to *"auto"*.
1. Else,
1. Set _style_ to *"numeric"*.
1. Else,
Expand All @@ -225,6 +224,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
1. If _style_ is *"numeric"*, then
1. If _unit_ is one of *"milliseconds"*, *"microseconds"*, or *"nanoseconds"*, then
1. Set _style_ to *"fractional"*.
1. Set _displayDefault_ to *"auto"*.
1. Let _displayField_ be the string-concatenation of _unit_ and *"Display"*.
1. Let _display_ be ? GetOption(_options_, _displayField_, ~string~, « *"auto"*, *"always"* », _displayDefault_).
1. If _display_ is *"always"* and _style_ is *"fractional"*, then
Expand Down Expand Up @@ -865,11 +865,11 @@ contributors: Ujjwal Sharma, Younies Mahmoud
<li>[[MinutesDisplay]] is one of the String values *"auto"* or *"always"* identifying when to display the minutes field.</li>
<li>[[SecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, *"2-digit"*, or *"numeric"* identifying the formatting style used for the seconds field.</li>
<li>[[SecondsDisplay]] is one of the String values *"auto"* or *"always"* identifying when to display the seconds field.</li>
<li>[[MillisecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"numeric"* identifying the formatting style used for the milliseconds field.</li>
<li>[[MillisecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"fractional"* identifying the formatting style used for the milliseconds field.</li>
<li>[[MillisecondsDisplay]] is one of the String values *"auto"* or *"always"* identifying when to display the milliseconds field.</li>
<li>[[MicrosecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"numeric"* identifying the formatting style used for the microseconds field.</li>
<li>[[MicrosecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"fractional"* identifying the formatting style used for the microseconds field.</li>
<li>[[MicrosecondsDisplay]] is one of the String values *"auto"* or *"always"* identifying when to display the microseconds field.</li>
<li>[[NanosecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"numeric"* identifying the formatting style used for the nanoseconds field.</li>
<li>[[NanosecondsStyle]] is one of the String values *"long"*, *"short"*, *"narrow"*, or *"fractional"* identifying the formatting style used for the nanoseconds field.</li>
<li>[[NanosecondsDisplay]] is one of the String values *"auto"* or *"always"* identifying when to display the nanoseconds field.</li>
<li>[[FractionalDigits]] is a non-negative integer, identifying the number of fractional digits to be used with numeric styles, or is *undefined*.</li>
</ul>
Expand Down

0 comments on commit eea517b

Please sign in to comment.