get file modification time in mm/dd/yyyy format?
beliavsky at aol.com
beliavsky at aol.com
Sat May 7 11:23:48 EDT 2005
Using Python 2.4 on Windows, for me the command
print os.stat("temp.txt")[stat.ST_MTIME]
gives
1115478343 ,
which is "seconds since the epoch". How can I get the modification time
in a format such as
05/07/2005 11:05 AM
as in Windows with the dir command? Ideal would be a tuple of 6 values,
(year,month,day,hour,minute,second). Thanks.
More information about the Python-list
mailing list