Bug in Calendar Module
Fredrik Lundh
fredrik at pythonware.com
Fri Jan 21 03:48:28 EST 2000
Liew Pol Yee <polyp at cyberway.com.sg> wrote:
> Hello! Does a fix for the Calendar Module calendar.py exist? Currently, i
> get errors when I do the following:
>
> import calendar
> new = calendar.monthcalendar(2038,2)
>
> It seems to be unable to accept dates after January, 2038.
> Thanks for any help!
that's a Unix problem (time_t is 32 bits), not a
Python problem per se.
search the web for "2038" for more info.
(and sure, if Unix doesn't fix this before then, I
promise we'll work around that bug in Python)
if you really need it, I'm pretty sure you can combine
calendar.py with Demo/classes/Dates.py into something
that (literally) works until the end of time.
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
— see it live on the python conference! &smiley; -->
More information about the Python-list
mailing list