?
u
/
This proposal aims to:
Europe/Kiev
to Europe/Kyiv
This specification consists of two parts:
To provide feedback on this proposal, please visit the proposal repository at https://github.com/tc39/proposal-canonical-tz.
This section lists amendments which must be made to ECMA-262, the ECMAScript® 2024 Language Specification.
This text is based on https://github.com/tc39/proposal-temporal/blob/main/spec/timezone.html, which specifies the timezone-related changes to ECMA-262 made by the Temporal proposal.
Text to be added is marked like this, and text to be deleted is marked like this.
The changes below are limited to the %Temporal.TimeZone% built-in object and the
This function performs the following steps when called:
This method performs the following steps when called:
The abstract operation CreateTemporalTimeZone takes argument identifier (a String) and optional argument newTarget (a
The abstract operation ToTemporalTimeZoneSlotValue takes argument temporalTimeZoneLike (an ECMAScript value) and returns either a
The abstract operation TimeZoneEquals takes arguments one (a String or Object) and two (a String or Object) and returns either a time zones using the same identifierthe same time zones, either because their identifiers are equal or because those identifiers resolve to the same
This section lists amendments which must be made to ECMA-402, the ECMAScript® 2024 Internationalization API Specification.
This text is based on https://github.com/tc39/proposal-temporal/blob/main/spec/intl.html, which specifies the changes to ECMA-402 made by the Temporal proposal.
Text to be added is marked like this, and text to be deleted is marked like this.
This proposal adds a note to the Temporal proposal's Use of the IANA Time Zone Database section, which replaces the current Time Zone Names section in ECMA-402.
One paragraph of existing text above and below the inserted note is included for context.
[...]
The IANA Time Zone Database is typically updated between five and ten times per year.
These updates may add new Zone or Link names, may change Zones to Links, and may change the UTC offsets and transitions associated with any Zone.
ECMAScript implementations are recommended to include updates to the IANA Time Zone Database as soon as possible.
Such prompt action ensures that ECMAScript programs can accurately perform time-zone-sensitive calculations and can use newly-added
Although the IANA Time Zone Database maintainers strive for stability, in rare cases (averaging less than once per year) a Zone may be replaced by a new Zone.
For example, in 2022 "
To reduce disruption from renaming changes, ECMAScript implementations are encouraged to initially add the new Zone as a
A waiting period should only apply when a new Zone is added to replace an existing Zone. If an existing Zone and Link are swapped, then no waiting period is necessary.
If implementations revise time zone information during the lifetime of an
[...]
This definition supersedes the definition provided in
This method performs the following steps when called:
This text is based on the revisions to InitializeDateTimeFormat made by the Temporal proposal, not the current text in ECMA-402.
Only one line is changed and is marked like this.
The rest of the text has been included for context, but it can be ignored.
The abstract operation InitializeDateTimeFormat accepts the arguments dateTimeFormat (which must be an object), locales, and options.
It initializes dateTimeFormat as a DateTimeFormat object.
If an additional toLocaleStringTimeZone argument is provided (which, if present, must be a canonical time zone name string), the time zone will be overridden and some adjustments will be made to the defaults in order to implement the behaviour of Temporal.ZonedDateTime.prototype.toLocaleString
.
This abstract operation functions as follows:
The following algorithm refers to the type
nonterminal from UTS 35's Unicode Locale Identifier grammar.
type
nonterminal, throw a type
nonterminal, throw a © 2023 Justin Grant, Richard Gibson
All Software contained in this document ("Software") is protected by copyright and is being made available under the "BSD License", included below. This Software may be subject to third party rights (rights from parties other than Ecma International), including patent rights, and no licenses under such third party rights are granted under this license even if the third party concerned is a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS AVAILABLE AT https://ecma-international.org/memento/codeofconduct.htm FOR INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO IMPLEMENT ECMA INTERNATIONAL STANDARDS.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.