-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure SystemUTCEpochNanoseconds never throws
Times outside of a range of about half a million years cannot be represented by Temporal.Instant. Clamp the system time to that range so that the operation is guaranteed not to throw, which is editorially the cleanest solution. If your clock is 300,000 years off then Temporal is not the biggest problem you will have, so this is not expected to come up in practice. See: #1424
- Loading branch information
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters