getmtime differs between Py2.5 and Py2.4
"Martin v. Löwis"
martin at v.loewis.de
Tue May 8 02:41:31 EDT 2007
> This is python 2.4.4 and Python 2.5.1 on windows XP.
> The reported time clearly differs.
Interesting. They don't for me:
C:\temp>dir test_os.diff
Volume in drive C has no label.
Volume Serial Number is 7414-6FC4
Directory of C:\temp
04.04.2007 18:41 3.661 test_os.diff
1 File(s) 3.661 bytes
0 Dir(s) 5.595.955.200 bytes free
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.getmtime(r"c:\temp\test_os.diff")
1175704875
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.getmtime(r"c:\temp\test_os.diff")
1175704875.1825342
Is your file system FAT, by any chance?
Regards,
Martin
More information about the Python-list
mailing list