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 <1580257293.07.0.510260881868.issue39460@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2020-01-29 00:21:33vstinnersetrecipients: + vstinner, David.Edelsohn, hroncok, Dormouse759
2020-01-29 00:21:33vstinnersetmessageid: <1580257293.07.0.510260881868.issue39460@roundup.psfhosted.org>
2020-01-29 00:21:33vstinnerlinkissue39460 messages
2020-01-29 00:21:32vstinnercreate