about javascript's Date Object, year 1582's lost 10 days problem and previous Date's leap years problem #284
hh-in-zhuzhou
started this conversation in
General
Replies: 1 comment 1 reply
-
I'm not sure what error you are encountering, but my guess is that it has something to do with the difference between the Julian calendar (before 1582) and the Gregorian calendar (after 1582). As far as I can tell, for consistency, JavaScript always uses the modern Gregorian calendar, even for years before 1582. If you want to support a different calendar like Julian, you would need to find some function to convert from Julian to Gregorian to pass into the JavaScript Date object. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use this library to draw planet and sun, and paired with another calendar like Chinese lunar calendar and other ancient calendars,so I often use years before 1582,which let me found the errors in javascript's Date Object.
I found that javascript cannot support problem of Oct in year 1582, the Date Object can out put 1582/10/6 which is not exists。 so what about if this library process Dates before 1582 ?
welcome suggestions, thanks.
Beta Was this translation helpful? Give feedback.
All reactions