TIMESYS and integer-nanoseconds times
Dubois-Felsmann, Gregory P.
gpdf at ipac.caltech.edu
Thu Aug 29 07:47:48 CEST 2024
Dear colleagues,
In Rubin we are having another round of a familiar conversation, about how to represent scientifically meaningful time stamps in databases and in tabular data formats such as Parquet.
The immediate question that's come up in this conversation is whether the current IVOA standards would give us a fully standards-compatible way to represent time stamps in a form like "nanoseconds since the MJD epoch", on the TAI timescale, in a signed 64-bit integral type.
We can obviously declare a column in a VOTable or a TAP database table as 64-bit-signed-integer, and give it units of nanoseconds. The question is whether the way the standards are written would permit using TIMESYS to define the desired time origin and time scale, or whether the use of TIMESYS is incompatible with the use of units of "ns".
Demleitner, Nebot, et al. (2018) (https://www.ivoa.net/documents/Notes/TimeSys/20181212/NOTE-timesysnote-1.1-20181212.html) seems to say explicitly that this should work:
"As long as these standards are followed, no interoperability problems are forseen regardless of whether times are given in years, days, seconds or any derivation of them."
VOTable 1.5 is less explicit about this.
I'm curious about whether there's prior art in the community for doing this for MJD-origin times with units that are not days, and whether it's known whether commonly used clients (Astropy, Aladin, etc.) would process them correctly.
Many thanks,
Gregory
More information about the apps
mailing list