Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
(2 edits)

Ah, good point. I collected a whole bunch of Julian-day-number-to-date conversion functions off the internet and then ended up having to write my own from scratch because they all relied on 32-bit integer arithmetic. I imagine there are probably other problems with my converter as well. For instance, the Gregorian calendar started in the 1500s; before that it was the Julian calendar, which differed by a couple of days at the 1AD mark. Probably better to use the Gregorian to go back in time, though, because it matches the solar year better.

Also the planet positions are unlikely to be accurate more than a few hundred years out. Mercury, in particular, has a large first derivative on its orbital elements. It would be fairly easy to add the first derivatives of the orbital elements in; JPL provides those.