|
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>
|
|
320 | 321 | 1. Let _earlierTime_ be AddTime(_isoDateTime_.[[Time]], _timeDuration_).
|
321 | 322 | 1. Let _earlierDate_ be AddDaysToISODate(_isoDateTime_.[[ISODate]], _earlierTime_.[[Days]]).
|
322 | 323 | 1. Let _earlierDateTime_ be CombineISODateAndTimeRecord(_earlierDate_, _earlierTime_).
|
| 324 | + 1. Perform ? CheckISODaysRange(_earlierDateTime_). |
323 | 325 | 1. Set _possibleEpochNs_ to ? GetPossibleEpochNanoseconds(_timeZone_, _earlierDateTime_).
|
324 | 326 | 1. Assert: _possibleEpochNs_ is not empty.
|
325 | 327 | 1. Return _possibleEpochNs_[0].
|
|
328 | 330 | 1. Let _laterTime_ be AddTime(_isoDateTime_.[[Time]], _timeDuration_).
|
329 | 331 | 1. Let _laterDate_ be AddDaysToISODate(_isoDateTime_.[[ISODate]], _laterTime_.[[Days]]).
|
330 | 332 | 1. Let _laterDateTime_ be CombineISODateAndTimeRecord(_laterDate_, _laterTime_).
|
| 333 | + 1. Perform ? CheckISODaysRange(_laterDateTime_). |
331 | 334 | 1. Set _possibleEpochNs_ to ? GetPossibleEpochNanoseconds(_timeZone_, _laterDateTime_).
|
332 | 335 | 1. Set _n_ to _possibleEpochNs_'s length.
|
333 | 336 | 1. Assert: _n_ ≠ 0.
|
|
349 | 352 | </dd>
|
350 | 353 | </dl>
|
351 | 354 | <emu-alg>
|
352 |
| - 1. Perform ? CheckISODaysRange(_isoDateTime_). |
| 355 | + 1. Assert: ISODateTimeWithinLimits(_isoDateTime_) is *true*. |
353 | 356 | 1. Let _parseResult_ be ! ParseTimeZoneIdentifier(_timeZone_).
|
354 | 357 | 1. If _parseResult_.[[OffsetMinutes]] is not ~empty~, then
|
355 | 358 | 1. Let _offsetNanoseconds_ be _parseResult_.[[OffsetMinutes]] × 6 × 10<sup>10</sup>.
|
|
376 | 379 | </dl>
|
377 | 380 | <emu-alg>
|
378 | 381 | 1. Let _isoDateTime_ be CombineISODateAndTimeRecord(_isoDate_, MidnightTimeRecord()).
|
| 382 | + 1. Perform ? CheckISODaysRange(_isoDateTime_). |
379 | 383 | 1. Let _possibleEpochNs_ be ? GetPossibleEpochNanoseconds(_timeZone_, _isoDateTime_).
|
380 | 384 | 1. If _possibleEpochNs_ is not empty, return _possibleEpochNs_[0].
|
381 | 385 | 1. Assert: IsOffsetTimeZoneIdentifier(_timeZone_) is *false*.
|
|
0 commit comments