STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> Shouldn't module time be changed to use a cross-platform implementation
> that uses a 64 bit time_t-like type? Apparently Perl 6 has made the
> equivalent change.

The error occurs on time.gmtime(t): even if we use 64 bits time_t type, we have 
to downcast it to system time_t later, because we would like to call gmtime() 
function at the end.

To workaround gmtime() limitation: we can simply use datetime instead. Attached 
patch replaces gmtime() by datetime.utcfromtimestamp(), and use its .strftime() 
method which has no such limitation.

----------
nosy: +belopolsky, haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5537>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to