File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -347,14 +347,13 @@ <h1>
347
347
</dd >
348
348
</dl >
349
349
<emu-alg >
350
+ 1. Perform ? CheckISODaysRange(_isoDateTime_ .[[ISODate]]).
350
351
1. Let _parseResult_ be ! ParseTimeZoneIdentifier(_timeZone_ ).
351
352
1. If _parseResult_ .[[OffsetMinutes]] is not ~empty~ , then
352
353
1. Let _offsetNanoseconds_ be _parseResult_ .[[OffsetMinutes]] × 6 × 10<sup >10</sup >.
353
- 1. Perform ? CheckISODaysRange(_isoDateTime_ .[[ISODate]]).
354
354
1. Let _epochNanoseconds_ be GetUTCEpochNanoseconds(_isoDateTime_ ) - _offsetNanoseconds_ .
355
355
1. Let _possibleEpochNanoseconds_ be « _epochNanoseconds_ ».
356
356
1. Else,
357
- 1. Perform ? CheckISODaysRange(_isoDateTime_ .[[ISODate]]).
358
357
1. Let _possibleEpochNanoseconds_ be GetNamedTimeZoneEpochNanoseconds(_parseResult_ .[[Name]], _isoDateTime_ ).
359
358
1. For each value _epochNanoseconds_ in _possibleEpochNanoseconds_ , do
360
359
1. If IsValidEpochNanoseconds(_epochNanoseconds_ ) is *false* , throw a *RangeError* exception.
Original file line number Diff line number Diff line change 907
907
</dd >
908
908
</dl >
909
909
<emu-alg >
910
+ 1. Perform ? CheckISODaysRange(_isoDate_ ).
910
911
1. If _time_ is ~start-of-day~ , then
911
912
1. Assert: _offsetBehaviour_ is ~wall~ .
912
913
1. Assert: _offsetNanoseconds_ is 0.
@@ -915,13 +916,11 @@ <h1>
915
916
1. If _offsetBehaviour_ is ~wall~ , or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~ignore~ , then
916
917
1. Return ? GetEpochNanosecondsFor(_timeZone_ , _isoDateTime_ , _disambiguation_ ).
917
918
1. If _offsetBehaviour_ is ~exact~ , or _offsetBehaviour_ is ~option~ and _offsetOption_ is ~use~ , then
918
- 1. Perform ? CheckISODaysRange(_isoDate_ ).
919
919
1. Let _epochNanoseconds_ be GetUTCEpochNanoseconds(_isoDateTime_ ) - _offsetNanoseconds_ .
920
920
1. If IsValidEpochNanoseconds(_epochNanoseconds_ ) is *false* , throw a *RangeError* exception.
921
921
1. Return _epochNanoseconds_ .
922
922
1. Assert: _offsetBehaviour_ is ~option~ .
923
923
1. Assert: _offsetOption_ is ~prefer~ or ~reject~ .
924
- 1. Perform ? CheckISODaysRange(_isoDate_ ).
925
924
1. Let _utcEpochNanoseconds_ be GetUTCEpochNanoseconds(_isoDateTime_ ).
926
925
1. Let _possibleEpochNs_ be ? GetPossibleEpochNanoseconds(_timeZone_ , _isoDateTime_ ).
927
926
1. For each element _candidate_ of _possibleEpochNs_ , do
You can’t perform that action at this time.
0 commit comments