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 Alexander.Belopolsky, Arfrever, belopolsky, ericography, jcea, khenriksson, larry, lars.gustaebel, loewis, mark.dickinson, nadeem.vawda, r.david.murray, rhettinger, rosslagerwall, skrah, vstinner
Date 2012-01-30.22:43:59
SpamBayes Score 1.35558e-07
Marked as misclassified No
Message-id <>
I attached a more complete patch to the issue #13882: it adds an optional timestamp format to os.stat(), os.lstat(), os.fstat(), os.fstatat().


$ ./python 
Python 3.3.0a0 (default:2914ce82bf89+, Jan 30 2012, 23:07:24) 
>>> import os
>>> s=os.stat("", timestamp="datetime")
>>> s.st_mtime - s.st_ctime
>>> print(s.st_atime - s.st_ctime)
52 days, 1:44:06.191293
>>> os.stat("", timestamp="timespec").st_ctime
(1323458640, 702327236)
>>> os.stat("", timestamp="decimal").st_ctime
Date User Action Args
2012-01-30 22:44:00vstinnersetrecipients: + vstinner, loewis, rhettinger, jcea, mark.dickinson, belopolsky, lars.gustaebel, larry, nadeem.vawda, Arfrever, r.david.murray, skrah, Alexander.Belopolsky, rosslagerwall, khenriksson, ericography
2012-01-30 22:44:00vstinnersetmessageid: <>
2012-01-30 22:44:00vstinnerlinkissue11457 messages
2012-01-30 22:43:59vstinnercreate