Re:JavaScript dates are about to be fixed
by Denvercoder9 on Saturday August 24, 2024 @04:07PM
(#41341103)
If you're truly using Julian dates, the switch to the Gregorian calendar in the UK and US in September 1752 shouldn't affect you.
Re:JavaScript dates are about to be fixed
by layer8 on Saturday August 24, 2024 @02:27PM
(#41340274)
Before roughly 100 years ago, calendar dates were region-dependent anyway (Russia was still on the Julian calendar until 1918), and time zones didn’t really exist until roughly 150 years ago (their establishment mostly being motivated by the spreading of railways). It’s okay to apply the perpetual Gregorian calendar both into the past and the future by default. It probably won’t last more than a couple thousand years into the future as well, considering Earth’s decelerating rotation.
Re:JavaScript dates are about to be fixed
by nradov on Saturday August 24, 2024 @06:41PM
(#41342381)
Some Orthodox Churches still use the Julian calendar even today. Of course they aren't major software customers.
I think time zones not existing really meant there were infinite time zones, because you use the sun to tell the time.
The solar day varies in length by more than a minute over the year. That doesn't correspond to a well-defined time zone. Also, "zone" implies a geographical area, which meridians arguably aren't.
Re:JavaScript dates are about to be fixed
by LoganDark on Saturday August 24, 2024 @03:39PM
(#41340872)
oof, there went 12 days. at least this isn't a regular occurrence outside of 1752 (unless you have DID, I guess)
Re:JavaScript dates are about to be fixed
by thaumasiotes on Saturday August 24, 2024 @05:42PM
(#41341824)
> if I need to do math with it, I often work with an offset julian date as an integer. But that only works if you stay on this side of September 1752
Wouldn't using Julian days prevent the ordinary problems involved with doing calendar math across a renumbering of the dates?
Re:JavaScript dates are about to be fixed
by dunham on Saturday August 24, 2024 @09:47PM
(#41343635)
The mapping from year, month, day that I use (based on the Wikipedia page, but starting on march 1, 1600) doesn't take that gap into account. So the days in that gap exist for me, but we don't deal with dates that far back.
These days I try to encode everything that is logically a date as yyyy-mm-dd. And if I need to do math with it, I often work with an offset julian date as an integer. But that only works if you stay on this side of September 1752: