home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 June / PCWorld_2005-06_cd.bin / software / vyzkuste / firewally / firewally.exe / framework-2.3.exe / test_imaplib.py < prev    next >
Text File  |  2003-12-30  |  364b  |  13 lines

  1. import imaplib
  2. import time
  3.  
  4. # 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.
  7.  
  8. timevalues = [2000000000, 2000000000.0, time.localtime(2000000000),
  9.               '"18-May-2033 05:33:20 +0200"']
  10.  
  11. for t in timevalues:
  12.     imaplib.Time2Internaldate(t)
  13.