[hdf-forum] time data
Francesc Alted
faltet at pytables.org
Wed Jun 17 06:43:30 EDT 2009
A Wednesday 17 June 2009 08:55:50 Vesa Paatero escrigué:
> Hello,
>
> Ger van Diepen wrote:
> > Another option is to use two long integer values (for seconds and
> > nanoseconds), but the arithmetic will require a bit more work.
>
> We made a decision about timestamp format recently, favoring a 64-bit
> integer of microseconds, starting from Jan 1, 1970 (like the Unix time).
> That spans over 580000 years, and a common starting point with Unix time
> facilitates date functions. The same idea could be applied for a 580-year
> span of nanoseconds.
For more ideas about date/time formats, you may want to have a look at a
proposal [1] for implementing a couple of types (one for absolute times and
the other for relative) in NumPy [2]. It seems that the NumPy crew is already
in the implementation phase of it, so you may find it useful.
[1] http://projects.scipy.org/numpy/browser/trunk/doc/neps/datetime-
proposal3.rst
[2] http://numpy.scipy.org/
Regards,
--
Francesc Alted
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.
More information about the Hdf-forum
mailing list