The official Python 2.5 on Windows was created with Visual Studio.Net 2003, which uses 32-bit time_t. Therefore, when the year is> 2038, it simply gives exceptions.
Although this is fixed in Python 2.6 (which changed time_t to 64 bits with VS2008), I would like to use 2.5 because many modules have already been compiled for it.
So, here is my question - is there any solution allowing my program to handle the year> 2038 and still use official Python 2.5? For example, some ready-made libraries, such as "time64"or "longtime", etc ...
Please do not tell me to upgrade to version 2.6+ or forget about the error - I have a reason to make it work, so I post a question here.
source
share