I searched a lot about this issue and surprisingly I didn't find anything useful.
I made a program in Python inspired in relativity theory. A dilation time is calculated in seconds and then sums it to the time in the time dilation zone to see which year is in the Earth when ship comes back.
If code needed I can add it, just ask for it, but I think it's not necessary to answer my question.
Ok until here, the problem resides in "epoch", "datetime", etc. because the limit on 9999 year (or 2038 with epoch 32bit). I want to made a joke with year 802702 and the Morlocks, and for now I can only return date in format string, not date. Any idea of how can I return that kind of years in date format?
Summary: I want to work and return with dates (date format) with years greater than 9999 and more than 4 digits.
To handle dates beyond the typical range supported by Python;s built-in datetime module(which is limited to years 1 through 9999),you can use the datetime library's datetime class for calculations,but for years beyond that, you might consider using custom classes or libraries that can handle arbitrary ranges.
Custom Date Class : To handle dates with random years, your could write own class. Here is a basic example: