When it comes to astronomical events, it does not matter how much of the earth is facing the Sun, that is, it has daylight. Therefore, calendars and dates do not matter. You should just use the time. 64 bits of time_t are enough.
Even when you use time, keep in mind that three-body systems (like Earth-Sun-Jupiter) are chaotic. The prediction of the position of the Earth in the distant future has a rather large error.
source share