File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,17 @@ contributors: Ujjwal Sharma, Younies Mahmoud
295
295
1. Let _num_ be ! FormatNumeric(_nf_, 𝔽(_value_)).
296
296
1. Append the new Record { [[Type]]: _unit_, [[Value]]: _num_} to the end of _result_.
297
297
1. If _unit_ is `"hours"` or `"minutes"`, then
298
- 1. Let _separator_ be _dataLocaleData_.[[formats]].[[digital]].[[separator]].
299
- 1. Append the new Record { [[Type]]: `"literal"`, [[Value]]: _separator_} to the end of _result_.
298
+ 1. If _unit_ is `"hours"`, then
299
+ 1. Let _nextValue_ be _duration_.[[Minutes]].
300
+ 1. Let _nextDisplay_ be _durationFormat_.[[MinutesDisplay]].
301
+ 1. Else,
302
+ 1. Let _nextValue_ be _duration_.[[Seconds]].
303
+ 1. Let _nextDisplay_ be _durationFormat_.[[SecondsDisplay]].
304
+ 1. If _durationFormat_.[[MillisecondsStyle]] is `"numeric"`, then
305
+ 1. Set _nextValue_ to _nextValue_ + _duration_.[[Milliseconds]] / 10<sup>3</sup> + _duration_.[[Microseconds]] / 10<sup>6</sup> + _duration_.[[Nanoseconds]] / 10<sup>9</sup>.
306
+ 1. If _nextValue_ is not 0 or _nextDisplay_ is not `"auto"`, then
307
+ 1. Let _separator_ be _dataLocaleData_.[[formats]].[[digital]].[[separator]].
308
+ 1. Append the new Record { [[Type]]: `"literal"`, [[Value]]: _separator_} to the end of _result_.
300
309
1. Else,
301
310
1. Let _num_ be ! PartitionNumberPattern(_nf_, 𝔽(_value_)).
302
311
1. Let _pr_ be ! Construct(%PluralRules%, « _durationFormat_.[[Locale]] »).
You can’t perform that action at this time.
0 commit comments