Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: Change offset in ISODateTimeWithinLimits to actually 24h #1723

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/plaindatetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,16 +866,16 @@ <h1>GetEpochFromISOParts ( _year_, _month_, _day_, _hour_, _minute_, _second_, _
<h1>ISODateTimeWithinLimits ( _year_, _month_, _day_, _hour_, _minute_, _second_, _millisecond_, _microsecond_, _nanosecond_ )</h1>
<emu-note>
<p>
Temporal.PlainDateTime objects can represent points in time within 24 hours (8.64 × 10<sup>16</sup> nanoseconds) of the Temporal.Instant boundaries.
Temporal.PlainDateTime objects can represent points in time within 24 hours (8.64 × 10<sup>13</sup> nanoseconds) of the Temporal.Instant boundaries.
This ensures that a Temporal.Instant object can be converted into a Temporal.PlainDateTime object using any time zone.
</p>
</emu-note>
<emu-alg>
1. Assert: _year_, _month_, _day_, _hour_, _minute_, _second_, _millisecond_, _microsecond_, and _nanosecond_ are integers.
1. Let _ns_ be ! GetEpochFromISOParts(_year_, _month_, _day_, _hour_, _minute_, _second_, _millisecond_, _microsecond_, _nanosecond_).
1. If _ns_ ≤ -8.64 × 10<sup>21</sup> - 8.64 × 10<sup>16</sup>, then
1. If _ns_ ≤ -8.64 × 10<sup>21</sup> - 8.64 × 10<sup>13</sup>, then
1. Return *false*.
1. If _ns_ ≥ 8.64 × 10<sup>21</sup> + 8.64 × 10<sup>16</sup>, then
1. If _ns_ ≥ 8.64 × 10<sup>21</sup> + 8.64 × 10<sup>13</sup>, then
1. Return *false*.
1. Return *true*.
</emu-alg>
Expand Down