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
@@ -32318,10 +32318,10 @@ <h1>HostTimeZoneIdentifier ( ): a String</h1>
32318
32318
32319
32319
<emu-note>
32320
32320
<p>
32321
-
To ensure the level of functionality that implementations commonly provide in the methods of the Date object, it is recommended that HostTimeZoneIdentifier return an IANA time zone name corresponding to the host environment's time zone setting, if such a thing exists.
32321
+
To ensure the level of functionality that implementations commonly provide in the methods of the Date object, it is recommended that SystemTimeZoneIdentifier return an IANA time zone name corresponding to the host environment's time zone setting, if such a thing exists.
32322
32322
GetNamedTimeZoneEpochNanoseconds and GetNamedTimeZoneOffsetNanoseconds must reflect the local political rules for standard time and daylight saving time in that time zone, if such rules exist.
32323
32323
</p>
32324
-
<p>For example, if the host environment is a browser on a system where the user has chosen US Eastern Time as their time zone, HostTimeZoneIdentifier returns *"America/New_York"*.</p>
32324
+
<p>For example, if the host environment is a browser on a system where the user has chosen US Eastern Time as their time zone, SystemTimeZoneIdentifier returns *"America/New_York"*.</p>
32325
32325
</emu-note>
32326
32326
</emu-clause>
32327
32327
@@ -32365,15 +32365,15 @@ <h1>
32365
32365
</dd>
32366
32366
</dl>
32367
32367
<emu-alg>
32368
-
1. Let _hostTimeZoneIdentifier_ be HostTimeZoneIdentifier().
32369
-
1. If IsTimeZoneOffsetString(_hostTimeZoneIdentifier_) is *true*, then
32370
-
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_hostTimeZoneIdentifier_).
32368
+
1. Let _systemTimeZoneIdentifier_ be SystemTimeZoneIdentifier().
32369
+
1. If IsTimeZoneOffsetString(_systemTimeZoneIdentifier_) is *true*, then
32370
+
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_systemTimeZoneIdentifier_).
32371
32371
1. Else,
32372
-
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_hostTimeZoneIdentifier_, ℤ(ℝ(_t_) × 10<sup>6</sup>)).
32372
+
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_systemTimeZoneIdentifier_, ℤ(ℝ(_t_) × 10<sup>6</sup>)).
32373
32373
1. Let _offsetMs_ be truncate(_offsetNs_ / 10<sup>6</sup>).
32374
32374
1. Return _t_ + 𝔽(_offsetMs_).
32375
32375
</emu-alg>
32376
-
<p>If political rules for the local time _t_ are not available within the implementation, the result is _t_ because HostTimeZoneIdentifier returns *"UTC"* and GetNamedTimeZoneOffsetNanoseconds returns 0.</p>
32376
+
<p>If political rules for the local time _t_ are not available within the implementation, the result is _t_ because SystemTimeZoneIdentifier returns *"UTC"* and GetNamedTimeZoneOffsetNanoseconds returns 0.</p>
32377
32377
<emu-note>
32378
32378
<p>It is required for time zone aware implementations (and recommended for all others) to use the time zone information of the IANA Time Zone Database <a href="https://www.iana.org/time-zones/">https://www.iana.org/time-zones/</a>.</p>
32379
32379
</emu-note>
@@ -32397,19 +32397,19 @@ <h1>
32397
32397
</dd>
32398
32398
</dl>
32399
32399
<emu-alg>
32400
-
1. Let _hostTimeZoneIdentifier_ be HostTimeZoneIdentifier().
32401
-
1. If IsTimeZoneOffsetString(_hostTimeZoneIdentifier_) is *true*, then
32402
-
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_hostTimeZoneIdentifier_).
32400
+
1. Let _systemTimeZoneIdentifier_ be SystemTimeZoneIdentifier().
32401
+
1. If IsTimeZoneOffsetString(_systemTimeZoneIdentifier_) is *true*, then
32402
+
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_systemTimeZoneIdentifier_).
32403
32403
1. Else,
32404
-
1. Let _possibleInstants_ be GetNamedTimeZoneEpochNanoseconds(_hostTimeZoneIdentifier_, ℝ(YearFromTime(_t_)), ℝ(MonthFromTime(_t_)) + 1, ℝ(DateFromTime(_t_)), ℝ(HourFromTime(_t_)), ℝ(MinFromTime(_t_)), ℝ(SecFromTime(_t_)), ℝ(msFromTime(_t_)), 0, 0).
32404
+
1. Let _possibleInstants_ be GetNamedTimeZoneEpochNanoseconds(_systemTimeZoneIdentifier_, ℝ(YearFromTime(_t_)), ℝ(MonthFromTime(_t_)) + 1, ℝ(DateFromTime(_t_)), ℝ(HourFromTime(_t_)), ℝ(MinFromTime(_t_)), ℝ(SecFromTime(_t_)), ℝ(msFromTime(_t_)), 0, 0).
32405
32405
1. NOTE: The following steps ensure that when _t_ represents local time repeating multiple times at a negative time zone transition (e.g. when the daylight saving time ends or the time zone offset is decreased due to a time zone rule change) or skipped local time at a positive time zone transition (e.g. when the daylight saving time starts or the time zone offset is increased due to a time zone rule change), _t_ is interpreted using the time zone offset before the transition.
32406
32406
1. If _possibleInstants_ is not empty, then
32407
32407
1. Let _disambiguatedInstant_ be _possibleInstants_[0].
32408
32408
1. Else,
32409
32409
1. NOTE: _t_ represents a local time skipped at a positive time zone transition (e.g. due to daylight saving time starting or a time zone rule change increasing the UTC offset).
32410
-
1. [declared="tBefore"] Let _possibleInstantsBefore_ be GetNamedTimeZoneEpochNanoseconds(_hostTimeZoneIdentifier_, ℝ(YearFromTime(_tBefore_)), ℝ(MonthFromTime(_tBefore_)) + 1, ℝ(DateFromTime(_tBefore_)), ℝ(HourFromTime(_tBefore_)), ℝ(MinFromTime(_tBefore_)), ℝ(SecFromTime(_tBefore_)), ℝ(msFromTime(_tBefore_)), 0, 0), where _tBefore_ is the largest integral Number < _t_ for which _possibleInstantsBefore_ is not empty (i.e., _tBefore_ represents the last local time before the transition).
32410
+
1. [declared="tBefore"] Let _possibleInstantsBefore_ be GetNamedTimeZoneEpochNanoseconds(_systemTimeZoneIdentifier_, ℝ(YearFromTime(_tBefore_)), ℝ(MonthFromTime(_tBefore_)) + 1, ℝ(DateFromTime(_tBefore_)), ℝ(HourFromTime(_tBefore_)), ℝ(MinFromTime(_tBefore_)), ℝ(SecFromTime(_tBefore_)), ℝ(msFromTime(_tBefore_)), 0, 0), where _tBefore_ is the largest integral Number < _t_ for which _possibleInstantsBefore_ is not empty (i.e., _tBefore_ represents the last local time before the transition).
32411
32411
1. Let _disambiguatedInstant_ be the last element of _possibleInstantsBefore_.
32412
-
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_hostTimeZoneIdentifier_, _disambiguatedInstant_).
32412
+
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_systemTimeZoneIdentifier_, _disambiguatedInstant_).
32413
32413
1. Let _offsetMs_ be truncate(_offsetNs_ / 10<sup>6</sup>).
32414
32414
1. Return _t_ - 𝔽(_offsetMs_).
32415
32415
</emu-alg>
@@ -32419,7 +32419,7 @@ <h1>
32419
32419
For example, the maximum time value is 8.64 × 10<sup>15</sup>, corresponding with *"+275760-09-13T00:00:00Z"*.
32420
32420
In an environment where the local time zone offset is ahead of UTC by 1 hour at that instant, it is represented by the larger input of 8.64 × 10<sup>15</sup> + 3.6 × 10<sup>6</sup>, corresponding with *"+275760-09-13T01:00:00+01:00"*.
32421
32421
</p>
32422
-
<p>If political rules for the local time _t_ are not available within the implementation, the result is _t_ because HostTimeZoneIdentifier returns *"UTC"* and GetNamedTimeZoneOffsetNanoseconds returns 0.</p>
32422
+
<p>If political rules for the local time _t_ are not available within the implementation, the result is _t_ because SystemTimeZoneIdentifier returns *"UTC"* and GetNamedTimeZoneOffsetNanoseconds returns 0.</p>
32423
32423
<emu-note>
32424
32424
<p>It is required for time zone aware implementations (and recommended for all others) to use the time zone information of the IANA Time Zone Database <a href="https://www.iana.org/time-zones/">https://www.iana.org/time-zones/</a>.</p>
32425
32425
<p>
@@ -33749,11 +33749,11 @@ <h1>
33749
33749
<dl class="header">
33750
33750
</dl>
33751
33751
<emu-alg>
33752
-
1. Let _hostTimeZoneIdentifier_ be HostTimeZoneIdentifier().
33753
-
1. If IsTimeZoneOffsetString(_hostTimeZoneIdentifier_) is *true*, then
33754
-
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_hostTimeZoneIdentifier_).
33752
+
1. Let _systemTimeZoneIdentifier_ be SystemTimeZoneIdentifier().
33753
+
1. If IsTimeZoneOffsetString(_systemTimeZoneIdentifier_) is *true*, then
33754
+
1. Let _offsetNs_ be ParseTimeZoneOffsetString(_systemTimeZoneIdentifier_).
33755
33755
1. Else,
33756
-
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_hostTimeZoneIdentifier_, ℤ(ℝ(_tv_) × 10<sup>6</sup>)).
33756
+
1. Let _offsetNs_ be GetNamedTimeZoneOffsetNanoseconds(_systemTimeZoneIdentifier_, ℤ(ℝ(_tv_) × 10<sup>6</sup>)).
33757
33757
1. Let _offset_ be 𝔽(truncate(_offsetNs_ / 10<sup>6</sup>)).
33758
33758
1. If _offset_ is *+0*<sub>𝔽</sub> or _offset_ > *+0*<sub>𝔽</sub>, then
0 commit comments