Skip to content

Commit 04dc86c

Browse files
ryzokukenMs2ger
authored andcommitted
spec: misc intl spec fixes
1 parent 98b1edb commit 04dc86c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

spec/biblio.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@
106106
"type": "clause",
107107
"number": "Table 7",
108108
"id": "table-datetimeformat-components"
109+
},
110+
{
111+
"type": "clause",
112+
"number": "Table 8",
113+
"id": "table-datetimeformat-tolocaltime-record"
109114
}
110115
],
111116
"https://tc39.es/proposal-intl-duration-format/": [

spec/intl.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ <h1>InitializeDateTimeFormat ( _dateTimeFormat_, _locales_, _options_ )</h1>
112112
1. If _numberingSystem_ does not match the Unicode Locale Identifier `type` nonterminal, throw a *RangeError* exception.
113113
1. Set _opt_.[[nu]] to _numberingSystem_.
114114
1. Let _hour12_ be ? GetOption(_options_, *"hour12"*, *"boolean"*, *undefined*, *undefined*).
115-
1. Let _hourCycle_ be ? GetOption(_options_, *"hourCycle"*, *"string"*, &laquo; *"h11"*, *"h12"*, *"h23"*, *"h24"* &raquo;, *undefined*).
115+
1. Let _hourCycle_ be ? GetOption(_options_, *"hourCycle"*, *"string"*, « *"h11"*, *"h12"*, *"h23"*, *"h24"* », *undefined*).
116116
1. If _hour12_ is not *undefined*, then
117117
1. Let _hourCycle_ be *null*.
118118
1. Set _opt_.[[hc]] to _hourCycle_.
119119
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_).
121121
1. Set _dateTimeFormat_.[[Locale]] to _r_.[[locale]].
122122
1. Let _calendar_ be _r_.[[ca]].
123123
1. Set _dateTimeFormat_.[[Calendar]] to _calendar_.
@@ -530,10 +530,9 @@ <h1>ToLocalTime ( _t_, _calendar_, _timeZone_ )</h1>
530530
1. <del>Let _timeZoneOffset_ be the value calculated according to <emu-xref href="#sec-local-time-zone-adjustment">LocalTZA(_t_, *true*)</emu-xref> where the local time zone is replaced with timezone _timeZone_.</del>
531531
1. <ins>Let _timeZoneOffset_ be ! GetIANATimeZoneOffsetNanoseconds(_t_, _timeZone_).</ins>
532532
1. Let _tz_ be the time value _t_ + _timeZoneOffset_.
533-
1. Return a record with fields calculated from _tz_ according to <emu-xref href="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref>.
533+
1. Return a record with fields calculated from _tz_ according to <del><emu-xref href="#table-datetimeformat-tolocaltime-record"></emu-xref></del><ins><emu-xref href="#table-temporal-plaindatetimeformat-tolocaltime-record"></emu-xref></ins>.
534534
1. Else,
535-
1. Return a record with the fields of Column 1 of <emu-xref href="#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-xref href="#table-datetimeformat-tolocaltime-record"></emu-xref></del><ins><emu-xref href="#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>.
537536
</emu-alg>
538537

539538
<emu-table id="table-temporal-plaindatetimeformat-tolocaltime-record">

0 commit comments

Comments
 (0)