time

Bryan belred1 at yahoo.com
Tue Sep 28 03:47:31 CEST 2004


can someone explain to me why i get different values for the tm_yday and 
tm_isdst values?

 >>> import rfc822
 >>> rfc822.parsedate('Mar  1 01:03:59 2004')
(2004, 3, 1, 1, 3, 59, 0, 0, 0)

 >>> import time
 >>> time.strptime('Mar  1 01:03:59 2004', '%b %d %H:%M:%S %Y')
(2004, 3, 1, 1, 3, 59, 0, 61, -1)


thanks,

bryan



More information about the Python-list mailing list