file date/time on windows
m.banaouas
banaouas.medialog at wanadoo.fr
Wed Jan 28 10:23:35 EST 2009
hi,
I noticed recently that the value of file date/time I get with python:
time.strftime('%Y-%m-%d %H:%M', time.gmtime(os.stat(fullname).st_mtime))
is forwarding by one hour the real file date/time.
Example:
file A.txt: 2009-01-18 16:13
returned valeur: 2009-01-28 15:13
Is there a simple way to get it work correctely (other than adding always 1
hour ...) ?
thanks
More information about the Python-list
mailing list