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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to