Kasun Herath <kasun...@gmail.com> added the comment:

Yes problem seems to be with time.mktime(). Here is my output,

>>> calendar.timegm((2000, 1, 1, 0, 0, 0, -1, -1, -1))
946684800

>>> x = imaplib.Internaldate2tuple(b'25 (INTERNALDATE "01-Jan-2000 00:00:00 
>>> +0000")')

>>> x
time.struct_time(tm_year=2000, tm_mon=1, tm_mday=1, tm_hour=5, tm_min=30, 
tm_sec=0, tm_wday=5, tm_yday=1, tm_isdst=0)

>>> time.mktime(x)
946683000.0

----------

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

Reply via email to