|
276 | 276 | </dd>
|
277 | 277 | </dl>
|
278 | 278 | <emu-alg>
|
| 279 | + 1. Perform ? CheckISODaysRange(_isoDateTime_). |
279 | 280 | 1. Let _possibleEpochNs_ be ? GetPossibleEpochNanoseconds(_timeZone_, _isoDateTime_).
|
280 | 281 | 1. Return ? DisambiguatePossibleEpochNanoseconds(_possibleEpochNs_, _timeZone_, _isoDateTime_, _disambiguation_).
|
281 | 282 | </emu-alg>
|
|
324 | 325 | 1. Let _earlierTime_ be AddTime(_isoDateTime_.[[Time]], _timeDuration_).
|
325 | 326 | 1. Let _earlierDate_ be AddDaysToISODate(_isoDateTime_.[[ISODate]], _earlierTime_.[[Days]]).
|
326 | 327 | 1. Let _earlierDateTime_ be CombineISODateAndTimeRecord(_earlierDate_, _earlierTime_).
|
| 328 | + 1. Perform ? CheckISODaysRange(_earlierDateTime_). |
327 | 329 | 1. Set _possibleEpochNs_ to ? GetPossibleEpochNanoseconds(_timeZone_, _earlierDateTime_).
|
328 | 330 | 1. Assert: _possibleEpochNs_ is not empty.
|
329 | 331 | 1. Return _possibleEpochNs_[0].
|
|
332 | 334 | 1. Let _laterTime_ be AddTime(_isoDateTime_.[[Time]], _timeDuration_).
|
333 | 335 | 1. Let _laterDate_ be AddDaysToISODate(_isoDateTime_.[[ISODate]], _laterTime_.[[Days]]).
|
334 | 336 | 1. Let _laterDateTime_ be CombineISODateAndTimeRecord(_laterDate_, _laterTime_).
|
| 337 | + 1. Perform ? CheckISODaysRange(_laterDateTime_). |
335 | 338 | 1. Set _possibleEpochNs_ to ? GetPossibleEpochNanoseconds(_timeZone_, _laterDateTime_).
|
336 | 339 | 1. Set _n_ to _possibleEpochNs_'s length.
|
337 | 340 | 1. Assert: _n_ ≠ 0.
|
|
353 | 356 | </dd>
|
354 | 357 | </dl>
|
355 | 358 | <emu-alg>
|
356 |
| - 1. Perform ? CheckISODaysRange(_isoDateTime_). |
| 359 | + 1. Assert: ISODateTimeWithinLimits(_isoDateTime_) is *true*. |
357 | 360 | 1. Let _parseResult_ be ! ParseTimeZoneIdentifier(_timeZone_).
|
358 | 361 | 1. If _parseResult_.[[OffsetMinutes]] is not ~empty~, then
|
359 | 362 | 1. Let _offsetNanoseconds_ be _parseResult_.[[OffsetMinutes]] × 6 × 10<sup>10</sup>.
|
|
380 | 383 | </dl>
|
381 | 384 | <emu-alg>
|
382 | 385 | 1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_isoDate_, MidnightTimeRecord()).
|
| 386 | + 1. Perform ? CheckISODaysRange(_isoDateTime_). |
383 | 387 | 1. Let _possibleEpochNs_ be ? GetPossibleEpochNanoseconds(_timeZone_, _isoDateTime_).
|
384 | 388 | 1. If _possibleEpochNs_ is not empty, return _possibleEpochNs_[0].
|
385 | 389 | 1. Assert: IsOffsetTimeZoneIdentifier(_timeZone_) is *false*.
|
|
0 commit comments