-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete re-implementation of JulianDate.fromIso8601
1. Takes into account all formats defined in the ISO8601 standard, including those not supported by Date.parse. 2. Supports leap seconds and sub-millisecond times. 3. Break out isLeapYear into a seperate helper function. 4. Remove toYearFraction as it has problems and is unused. 5. Write a bunch of new tests. This does NOT add support for more than 4 digit years, as that is a variant of the standard that requires an agreed upon number of digits that we have not settled on yet. This means that we can't yet support times before 1 B.C. or after 9999 AD. This will be added in the future.
- Loading branch information
Showing
4 changed files
with
746 additions
and
148 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
Oops, something went wrong.