Message360915
I suspect that the timestamp set by os.utime() is not the one seen by os.stat(). Or maybe time.localtime() behavior changed.
Try attached utime_stat_localtime.py script.
Output on Fedora 31 in my home directory which uses btrfs:
$ python3.7 utime_stat_localtime.py
os.utime (sec): 4386268800
os.stat (sec): 4386268800
os.stat (ns): 4386268800000000000
stat==utime? True
localtime: (2108, 12, 30, 1, 0, 0) |
|
Date |
User |
Action |
Args |
2020-01-29 00:21:33 | vstinner | set | recipients:
+ vstinner, David.Edelsohn, hroncok, Dormouse759 |
2020-01-29 00:21:33 | vstinner | set | messageid: <1580257293.07.0.510260881868.issue39460@roundup.psfhosted.org> |
2020-01-29 00:21:33 | vstinner | link | issue39460 messages |
2020-01-29 00:21:32 | vstinner | create | |
|