file date/time on windows

m.banaouas banaouas.medialog at
Wed Jan 28 16:23:35 CET 2009


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.

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 ...) ?


More information about the Python-list mailing list