This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients David.Edelsohn, Dormouse759, hroncok, vstinner
Date 2020-01-29.00:21:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 script.

Output on Fedora 31 in my home directory which uses btrfs:

$ python3.7 
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:33vstinnersetrecipients: + vstinner, David.Edelsohn, hroncok, Dormouse759
2020-01-29 00:21:33vstinnersetmessageid: <>
2020-01-29 00:21:33vstinnerlinkissue39460 messages
2020-01-29 00:21:32vstinnercreate