Movatterモバイル変換
[0]ホーム
[Python-Dev] PEP 410 (Decimal timestamp): the implementation is ready for a review
Jim J. Jewettjimjjewett at gmail.com
Wed Feb 15 15:44:19 CET 2012
PEP author Victor asked(inhttp://mail.python.org/pipermail/python-dev/2012-February/116499.html):> Maybe I missed the answer, but how do you handle timestamp with an> unspecified starting point like os.times() or time.clock()? Should we> leave these function unchanged?If *all* you know is that it is monotonic, then you can't -- but thenyou don't really have resolution either, as the clock may well speed upor slow down.If you do have resolution, and the only problem is that you don't knowwhat the epoch was, then you can figure that out well enough by (onceper type per process) comparing it to something that does have an epoch,like time.gmtime().-jJ-- If there are still threading problems with my replies, please email me with details, so that I can try to resolve them. -jJ
More information about the Python-Devmailing list
[8]ページ先頭