blob: 78bb613008efddf0bb11fb3a59c4eaf08ee3db24 [file] [log] [blame]
Martin v. Löwisea752fb2002-01-05 11:31:49 +00001import imaplib
Tim Peters108b7912002-07-31 16:42:33 +00002import time
Martin v. Löwisea752fb2002-01-05 11:31:49 +00003
Piers Lauderdc96ae62002-08-03 11:14:43 +00004# We can check only that it successfully produces a result,
5# not the correctness of the result itself, since the result
6# depends on the timezone the machine is in.
Piers Lauderf0a70f62002-06-17 07:06:24 +00007
Piers Lauderdc96ae62002-08-03 11:14:43 +00008timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
Tim Peters8d30b1e2002-08-04 06:53:18 +00009 '"18-May-2033 05:33:20 +0200"']
Martin v. Löwisea752fb2002-01-05 11:31:49 +000010
11for t in timevalues:
Piers Lauderdc96ae62002-08-03 11:14:43 +000012 imaplib.Time2Internaldate(t)