[issue15443] datetime module has no support for nanoseconds
STINNER Victor
report at bugs.python.org
Fri Apr 10 00:07:24 CEST 2015
STINNER Victor added the comment:
> My patch for the issue #22043 adds nanosecond precision to get the system clock.
In fact, nanosecond resolution was added by the issue #22117. In Python 3.5, datetime.datetime.now() calls _PyTime_GetSystemClock() which has now a resolution of 1 nanosecond.
The C type has a resolution of 1 nanosecond, the effictive resolution depends on the platform. For example, Windows provides GetSystemTimeAsFileTime() which has a resolution of 100 ns (and the effective accuracy is closer to 15 ms: see issue #13845).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15443>
_______________________________________
More information about the Python-bugs-list
mailing list