[issue22117] Rewrite pytime.h to work on nanoseconds

STINNER Victor report at bugs.python.org
Mon Aug 25 03:45:53 CEST 2014


STINNER Victor added the comment:

Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. For a UNIX epoch, nanoseconds since January 1st 1970, the min/max are:
1677-09-21 00:12:43.145224
2262-04-11 23:47:16.854776

The Linux kernel is going to use 64-bit integer even on 32-bit CPU to store timestamps, to simplify the code (to avoid the structure).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22117>
_______________________________________


More information about the Python-bugs-list mailing list