get file modification time in mm/dd/yyyy format?

wittempj@hotmail.com martin.witte at gmail.com
Sat May 7 11:39:25 EDT 2005


Tried this it on linux, should work under windows as well I think
martin at ubuntu:~$ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
py> import time
py> t = time.localtime(1115478343)
py> print t
(2005, 5, 7, 17, 5, 43, 5, 127, 1)
py> print time.asctime(t)
Sat May  7 17:05:43 2005
py>




More information about the Python-list mailing list