Commit 108b7918 authored by Tim Peters's avatar Tim Peters

Reverting this to rev 1.3. It's apparently broken everywhere at rev

1.6, and pierslauder didn't respond to email about it on Monday.
parent b995eb79
import imaplib import imaplib
import time
# Can't use time.time() values, as they are O/S specific timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
'"18-May-2033 05:33:20 +0200"', '"18-May-2033 13:33:20 +1000"']
timevalues = [(2033, 5, 18, 3, 33, 20, 2, 138, 0), '"18-May-2033 13:33:20 +1000"'] check = timevalues[2]
for t in timevalues: for t in timevalues:
t1 = imaplib.Time2Internaldate(t) if check <> imaplib.Internaldate2tuple('INTERNALDATE ' + imaplib.Time2Internaldate(t)):
t2 = imaplib.Time2Internaldate(imaplib.Internaldate2tuple('INTERNALDATE ' + t1))
if t1 <> t2:
print 'incorrect result when converting', `t` print 'incorrect result when converting', `t`
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment