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 loewis
Recipients loewis, pitrou, tim.peters, vstinner
Date 2013-11-23.22:17:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385245058.37.0.148374794721.issue19738@psf.upfronthosting.co.za>
In-reply-to
Content
I think this issue can be resolved by reducing the loss to the maximum available precision; it's about time.time(), after all.

I don't think pygettimeofday can change; gettimeofday traditionally has only µs. So the issue really is that it is used in implementing time.time().

As for whether an integer-returning current-time function in Python is needed: -1 (but then, I voiced the same concern when the ns-filestamp APIs where added). Adding an API will "force" people to rewrite their code, with no real improvement for practical improvement. The "force" comes from the mere availability of the API, and any emerging claims that using the time_ns() function is "more correct".

I really wish Python would have a 128-bit floating point type that could be used to represent a time stamp. Until such a type is available (perhaps in 2025), I propose that we live with limitations of 64-bit floating point. Anybody *really* needing the Windows system time can use ctypes (or pywin32) already.
History
Date User Action Args
2013-11-23 22:17:38loewissetrecipients: + loewis, tim.peters, pitrou, vstinner
2013-11-23 22:17:38loewissetmessageid: <1385245058.37.0.148374794721.issue19738@psf.upfronthosting.co.za>
2013-11-23 22:17:38loewislinkissue19738 messages
2013-11-23 22:17:38loewiscreate