Le lun. 7 déc. 2020 à 19:52, Antoine Pitrou <solip...@pitrou.net> a écrit : > > But also notes that the precision is likely to exceed the accuracy by many > > times on real systems. > > Even if the accuracy is much lower than that, it can be important to > reproduce exact timestamps.
Sure, while my initial attempt to fix the issue (PEP 410 -- Use decimal.Decimal type for timestamps) got rejected, os.stat got 3 new fields (st_atime_ns, st_mtime_st, st_ctime_st) exactly for this reason: to compare timestamps and to copy the value value of timestamps. https://docs.python.org/dev/library/os.html#os.stat_result.st_atime_ns os.utime() accepts timestamps as nanoseconds as well using the "ns" parameter: https://docs.python.org/dev/library/os.html#os.utime Victor -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/67KAOWMFO427LSCRACN6KGD6UOS2RXOF/ Code of Conduct: http://python.org/psf/codeofconduct/