[Python-Dev] PEP 564: Add new time functions with nanosecond resolution

Chris Barker chris.barker at noaa.gov
Mon Oct 23 18:59:20 EDT 2017

On Sun, Oct 22, 2017 at 1:42 PM, Wes Turner <wes.turner at gmail.com> wrote:

> Aligning simulation data in context to other events may be enlightening:
> is there a good library for handing high precision time units in Python
> (and/or CFFI)?

Well, numpy's datetime64 can be set to use (almost) whatever unit you want:


Though it uses a single epoch, which I don't think ever made sense with

And it has other problems, but it was designed that way, just for the

However, while there has been discussion of improvements, like making the
epoch settable, none of them have happened, which makes me think that no
one is using it for physics experiments, but rather plain old human
calendar time...



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20171023/a6ad4046/attachment.html>

More information about the Python-Dev mailing list