Re: file date/time on windows

2009-01-28 Thread MRAB
m.banaouas wrote: thanks, someone gave me the solution: simply call time.localtime(...) instead of time.gmtime(...) The explorer file time is what I need because it's the only file date visible for most of users. So localtime is perfect for me. We are talking about the same file stored in a shar

Re: file date/time on windows

2009-01-28 Thread m.banaouas
thanks, someone gave me the solution: simply call time.localtime(...) instead of time.gmtime(...) The explorer file time is what I need because it's the only file date visible for most of users. So localtime is perfect for me. We are talking about the same file stored in a shared lan-computer-fold

Re: file date/time on windows

2009-01-28 Thread MRAB
m.banaouas wrote: 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 t