You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If _numberingSystem_ does not match the Unicode Locale Identifier `type` nonterminal, throw a *RangeError* exception.
113
113
1. Set _opt_.[[nu]] to _numberingSystem_.
114
114
1. Let _hour12_ be ? GetOption(_options_, *"hour12"*, *"boolean"*, *undefined*, *undefined*).
115
-
1. Let _hourCycle_ be ? GetOption(_options_, *"hourCycle"*, *"string"*, «*"h11"*, *"h12"*, *"h23"*, *"h24"*», *undefined*).
115
+
1. Let _hourCycle_ be ? GetOption(_options_, *"hourCycle"*, *"string"*, «*"h11"*, *"h12"*, *"h23"*, *"h24"*», *undefined*).
116
116
1. If _hour12_ is not *undefined*, then
117
117
1. Let _hourCycle_ be *null*.
118
118
1. Set _opt_.[[hc]] to _hourCycle_.
119
119
1. Let _localeData_ be %DateTimeFormat%.[[LocaleData]].
120
-
1. Let _r_ be ResolveLocale(%DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
120
+
1. Let _r_ be ResolveLocale(%DateTimeFormat%.[[AvailableLocales]], _requestedLocales_, _opt_, %DateTimeFormat%.[[RelevantExtensionKeys]], _localeData_).
121
121
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[locale]].
122
122
1. Let _calendar_ be _r_.[[ca]].
123
123
1. Set _dateTimeFormat_.[[Calendar]] to _calendar_.
1. <del>Let _timeZoneOffset_ be the value calculated according to <emu-xrefhref="#sec-local-time-zone-adjustment">LocalTZA(_t_, *true*)</emu-xref> where the local time zone is replaced with timezone _timeZone_.</del>
531
531
1. <ins>Let _timeZoneOffset_ be ! GetIANATimeZoneOffsetNanoseconds(_t_, _timeZone_).</ins>
532
532
1. Let _tz_ be the time value _t_ + _timeZoneOffset_.
533
-
1. Return a record with fields calculated from _tz_ according to <emu-xrefhref="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref>.
533
+
1. Return a record with fields calculated from _tz_ according to <del><emu-xrefhref="#table-datetimeformat-tolocaltime-record"></emu-xref></del><ins><emu-xrefhref="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref></ins>.
534
534
1. Else,
535
-
1. Return a record with the fields of Column 1 of <emu-xrefhref="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref> calculated from _t_ for the given _calendar_ and _timeZone_. The calculations should use best available information about the specified _calendar_ and _timeZone_, including current and historical information about time zone offsets from UTC and daylight saving time rules.
536
-
<ins>Given the same values of _t_, _calendar_, and _timeZone_, the result must be the same for the lifetime of the surrounding agent</ins>.
535
+
1. Return a record with the fields of Column 1 of <del><emu-xrefhref="#table-datetimeformat-tolocaltime-record"></emu-xref></del><ins><emu-xrefhref="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref></ins> calculated from _t_ for the given _calendar_ and _timeZone_. The calculations should use best available information about the specified _calendar_ and _timeZone_, including current and historical information about time zone offsets from UTC and daylight saving time rules. <ins>Given the same values of _t_, _calendar_, and _timeZone_, the result must be the same for the lifetime of the surrounding agent</ins>.
0 commit comments