Skip to content

Commit 01031a1

Browse files
committed
Edits based on @ljharb review
1 parent a12431e commit 01031a1

File tree

1 file changed

+33
-28
lines changed

1 file changed

+33
-28
lines changed

spec/intl.html

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ <h1><a href="https://tc39.es/ecma402/#sec-time-zone-support">Time Zone Support</
5353
<h1>Time Zone Identifiers</h1>
5454

5555
<p>
56-
The ECMAScript 2024 Internationalization API Specification identifies time zones using the Zone and Link names of the IANA Time Zone Database <a href="https://www.iana.org/time-zones/">https://www.iana.org/time-zones/</a>.
56+
The ECMAScript Internationalization API Specification identifies time zones using the Zone and Link names of the IANA Time Zone Database <a href="https://www.iana.org/time-zones/">https://www.iana.org/time-zones/</a>.
5757
Time zone identifiers are case-insensitive and so are compared using ASCII case-insensitive comparisons, but time zone identifiers returned by ECMAScript built-in objects always use the casing found in the IANA Time Zone Database.
5858
A primary time zone identifier is a Zone name, and a non-primary time zone identifier is a Link name, respectively, in the IANA Time Zone Database except as specifically overridden by AvailableTimeZoneIdentifiers.
59-
In an implementation that implements the ECMAScript 2024 Internationalization API Specification, available time zone identifiers are the set of Zone and Link identifiers that are supported by an ECMAScript implementation.
59+
In an implementation that implements the ECMAScript Internationalization API Specification, available time zone identifiers are the set of Zone and Link identifiers that are supported by an ECMAScript implementation.
6060
</p>
6161

6262
<p>
@@ -103,14 +103,16 @@ <h1>Time Zone Identifiers</h1>
103103
</ins>
104104

105105
<del class="block">
106-
<p>
107-
The ECMAScript 2024 Internationalization API Specification identifies time zones using the Zone and Link names of the IANA Time Zone Database. Their canonical form is the corresponding Zone name in the casing used in the IANA Time Zone Database except as specifically overridden by AvailableTimeZoneIdentifiers.
108-
</p>
106+
<p>
107+
The ECMAScript 2023 Internationalization API Specification identifies time zones using the Zone and Link names of the IANA Time Zone Database. Their canonical form is the corresponding Zone name in the casing used in the IANA Time Zone Database except as specifically overridden by CanonicalizeTimeZoneName.
108+
</p>
109109

110-
<p>
111-
A conforming implementation must recognize *"UTC"* and all other Zone and Link names (and <strong>only</strong> such names), and use best available current and historical information about their offsets from UTC and their daylight saving time rules in calculations. However, the set of combinations of time zone name and language tag for which localized time zone identifiers are available is implementation dependent.
112-
</p>
110+
<p>
111+
A conforming implementation must recognize *"UTC"* and all other Zone and Link names (and <strong>only</strong> such names), and use best available current and historical information about their offsets from UTC and their daylight saving time rules in calculations. However, the set of combinations of time zone name and language tag for which localized time zone names are available is implementation dependent.
112+
</p>
113+
</del>
113114

115+
<del class="block">
114116
<emu-clause id="sup-isvalidtimezonename">
115117
<h1><a href="https://tc39.es/ecma402/#sec-isvalidtimezonename">IsValidTimeZoneName</a> ( _timeZone_ )</h1>
116118

@@ -124,27 +126,29 @@ <h1><a href="https://tc39.es/ecma402/#sec-isvalidtimezonename">IsValidTimeZoneNa
124126
1. Return *false*.
125127
</emu-alg>
126128
</emu-clause>
129+
</del>
127130

128-
<emu-clause id="sup-canonicalizetimezonename" type="abstract operation">
129-
<h1>
130-
CanonicalizeTimeZoneName (
131-
_timeZone_: a String value that is a valid time zone name as verified by IsValidTimeZoneName,
132-
)
133-
</h1>
134-
<dl class="header">
135-
<dt>description</dt>
136-
<dd>It returns the canonical and case-regularized form of _timeZone_.</dd>
137-
<dt>redefinition</dt>
138-
<dd>true</dd>
139-
</dl>
131+
<del class="block">
132+
<emu-clause id="sup-canonicalizetimezonename" type="abstract operation">
133+
<h1>
134+
CanonicalizeTimeZoneName (
135+
_timeZone_: a String value that is a valid time zone name as verified by IsValidTimeZoneName,
136+
)
137+
</h1>
138+
<dl class="header">
139+
<dt>description</dt>
140+
<dd>It returns the canonical and case-regularized form of _timeZone_.</dd>
141+
<dt>redefinition</dt>
142+
<dd>true</dd>
143+
</dl>
140144

141-
<emu-alg>
142-
1. Let _ianaTimeZone_ be the String value of the Zone or Link name of the IANA Time Zone Database that is an ASCII-case-insensitive match of _timeZone_.
143-
1. If _ianaTimeZone_ is a Link name, let _ianaTimeZone_ be the String value of the corresponding Zone name as specified in the file <code>backward</code> of the IANA Time Zone Database.
144-
1. If _ianaTimeZone_ is *"Etc/UTC"* or *"Etc/GMT"*, return *"UTC"*.
145-
1. Return _ianaTimeZone_.
146-
</emu-alg>
147-
</emu-clause>
145+
<emu-alg>
146+
1. Let _ianaTimeZone_ be the String value of the Zone or Link name of the IANA Time Zone Database that is an ASCII-case-insensitive match of _timeZone_.
147+
1. If _ianaTimeZone_ is a Link name, let _ianaTimeZone_ be the String value of the corresponding Zone name as specified in the file <code>backward</code> of the IANA Time Zone Database.
148+
1. If _ianaTimeZone_ is *"Etc/UTC"* or *"Etc/GMT"*, return *"UTC"*.
149+
1. Return _ianaTimeZone_.
150+
</emu-alg>
151+
</emu-clause>
148152
</del>
149153

150154
<ins class="block">
@@ -1340,7 +1344,8 @@ <h1>Intl.DateTimeFormat.prototype.resolvedOptions ( )</h1>
13401344
</p>
13411345

13421346
<emu-note>
1343-
In this version of the ECMAScript 2024 Internationalization API, the *"timeZone"* property will be the name of the system time zone identifier if no *"timeZone"* property was provided in the options object provided to the Intl.DateTimeFormat constructor. The first edition left the *"timeZone"* property *undefined* in this case.
1347+
In this version of the ECMAScript Internationalization API, the *"timeZone"* property will be the name of the system time zone identifier if no *"timeZone"* property was provided in the options object provided to the Intl.DateTimeFormat constructor.
1348+
The first edition left the *"timeZone"* property *undefined* in this case.
13441349
</emu-note>
13451350

13461351
<emu-note>

0 commit comments

Comments
 (0)