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
Copy file name to clipboardExpand all lines: spec/timezone.html
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ <h1>Time Zone Names</h1>
16
16
</p>
17
17
<p>
18
18
Built-in time zones may be <dfnvariants="named time zone">named time zones</dfn>, represented by Strings for which IsAvailableTimeZoneName returns *true*.
19
+
Caller-supplied names of named time zones can be aliases for <dfnvariants="canonical time zone">canonical time zones</dfn>.
20
+
CanonicalizeTimeZoneName is used to translate aliases into canonical time zone names.
19
21
They may also be <dfnvariants="offset time zone">offset time zones</dfn>, represented by Strings for which IsTimeZoneOffsetString returns *true*.
20
22
</p>
21
23
<p>
@@ -27,6 +29,29 @@ <h1>Time Zone Names</h1>
27
29
Other implementations are encouraged to do the same.
28
30
</p>
29
31
32
+
<emu-clauseid="sec-time-zone-data-updates">
33
+
<h1>Handling Updates and Ensuring Consistency of Time Zone Data</h1>
34
+
<p>
35
+
The IANA Time Zone Database is frequently updated, averaging 10 annual releases in recent years.
36
+
An ECMAScript implementation that includes the ECMA-402 Internationalization API is strongly encouraged to use the most recent version of the IANA Time Zone Database that was available when the implementation was released.
37
+
Other implementations are encouraged to do the same.
38
+
</p>
39
+
<p>
40
+
It is also acceptable for implementations to update time zone data dynamically, either directly by loading a new version of the IANA Time Zone Database or indirectly by calling an external, dynamically-updated source like an operating system.
41
+
It is allowed for these updates to happen within the lifetime of the surrounding agent.
42
+
However, to ensure that ECMAScript programs can depend on a consistent view of time zone data, this specification places the following requirements ECMAScript implementations that dynamically update time zone data:
43
+
</p>
44
+
<ul>
45
+
<li>
46
+
After time zone data for a particular canonical named time zone is used during the lifetime of the surrounding agent, equivalent time zone data must be used for the lifetime of the surrounding agent for all subsequent use of the same canonical time zone name.
47
+
However, implementations are allowed to use different versions of time zone data for different canonical time zone names.
48
+
</li>
49
+
<li>
50
+
Any time zone name string, when evaluated ASCII-case-insensitively, must be canonicalized to the same canonical time zone name for the lifetime of the surrounding agent.
0 commit comments