Bug in Calendar Module

Ben Gertzfield che at debian.org
Fri Jan 21 15:57:50 EST 2000


>>>>> "Liew" == Liew Pol Yee <polyp at cyberway.com.sg> writes:

    Liew> Hello! Does a fix for the Calendar Module calendar.py exist? 
    Liew> Currently, i get errors when I do the following: import
    Liew> calendar new = calendar.monthcalendar(2038,2)

    Liew> It seems to be unable to accept dates after January,
    Liew> 2038. Thanks for any help!

This is because you are on a system where the time is stored as a
32-bit integer, as the number of seconds since 1970.

In 2038, the number of seconds since 1970 overflows the 32-bit limit,
and a lot of programs will break.

There isn't a good solution, except to use a system that has a 64-bit
counter for time.

Ben

-- 
Brought to you by the letters F and Q and the number 5.
"It makes my nipples hard!"
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/



More information about the Python-list mailing list