STINNER Victor <vstin...@python.org> added the comment:
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) ---------- Added file: https://bugs.python.org/file48869/utime_stat_localtime.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39460> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com