time bug in Python 2.2(Windows)?
Lucas Vogel
vogell_75 at earthlink.net
Thu Aug 1 18:57:41 EDT 2002
I am using the time module to convert the creation date of a file to a
date format for comparison.
The creation time of the file I am looking at is 3/19/2002 at 7:14:32
PM.
os.stat returns a tuple of:
(33206, 0L, 4, 1, 0, 0, 2536L, 1028240652, 1016594072, 1016594072)
calling time.ctime(1016594072) returns this tuple:
(2002, 3, 20, 3, 14, 32, 2, 79, 0)
Clearly something is amiss here, but wherein lies the problem? Is it
the value returned from stat? Am I not doing something correctly?
Lucas Vogel
More information about the Python-list
mailing list