On Sun, Oct 22, 2017 at 1:42 PM, Wes Turner <wes.tur...@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: https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays. datetime.html#datetime-units Though it uses a single epoch, which I don't think ever made sense with femtoseconds.... And it has other problems, but it was designed that way, just for the reason. 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... -CHB -- Christopher Barker, Ph.D. Oceanographer 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.bar...@noaa.gov
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com