Skip to content

Commit

Permalink
Editorial: Avoid GetOffsetNanosecondsFor call in InterpretISODateTime…
Browse files Browse the repository at this point in the history
…Offset

Spec text algorithm corresponding to the previous commit.
  • Loading branch information
ptomato committed Sep 10, 2024
1 parent fc444b5 commit 9bc5d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/zoneddatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,9 @@ <h1>
1. Assert: _offsetOption_ is *"prefer"* or *"reject"*.
1. Let _possibleEpochNs_ be ? GetPossibleEpochNanoseconds(_timeZone_, _isoDateTime_).
1. If _possibleEpochNs_ is not empty, then
1. Let _utcEpochNanoseconds_ be GetUTCEpochNanoseconds(_year_, _month_, _day_, _time_.[[Hour]], _time_.[[Minute]], _time_.[[Second]], _time_.[[Millisecond]], _time_.[[Microsecond]], _time_.[[Nanosecond]]).
1. For each element _candidate_ of _possibleEpochNs_, do
1. Let _candidateOffset_ be GetOffsetNanosecondsFor(_timeZone_, _candidate_).
1. Let _candidateOffset_ be _utcEpochNanoseconds_ - _candidate_.
1. If _candidateOffset_ = _offsetNanoseconds_, then
1. Return _candidate_.
1. If _matchBehaviour_ is ~match-minutes~, then
Expand Down

0 comments on commit 9bc5d04

Please sign in to comment.