News for hackers. Stuff that matters.
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.