CSPICE_UNITIM returns the double precision value of an input epoch converted
from one uniform time scale to another.
For important details concerning this module's function, please refer to
the CSPICE routine unitim_c.
epoch a scalar double precision epoch relative to the 'insys'
insys the scalar string naming the uniform time scale of
'epoch'. Acceptable values:
'TAI' International Atomic Time.
'TDB' Barycentric Dynamical Time.
'TDT' Terrestrial Dynamical Time.
'ET' Ephemeris time (in the SPICE system, this is
equivalent to TDB).
'JDTDB' Julian Date relative to TDB.
'JDTDT' Julian Date relative to TDT.
'JED' Julian Ephemeris date (in the SPICE system
this is equivalent to JDTDB).
The routine is not sensitive to the case of the
characters in insys; 'tai' 'Tai' and 'TAI' are
all equivalent from the point of view of this routine.
outsys the scalar string naming the uniform time scale to which 'epoch'
should be converted. Acceptable values are the same as for
The routine is not sensitive to the case of 'outsys'.
double = cspice_unitim( epoch, insys, outsys)
The function returns a scalar double precision, the time in the system
specified by 'outsys' equivalent to the 'epoch' in the 'insys' time scale.
Convert a date from ephemeris seconds J2000 to Julian Ephemeris Date:
cspice_str2et, 'Dec 19 2003', et
converted_et = cspice_unitim(et, 'ET','JED')
;; It's always good form to unload kernels after use,
;; particularly in IDL due to data persistence.
-Icy Version 1.0.1, 09-MAY-2016, EDW (JPL)
Eliminated typo in example code; no change to functionality.
-Icy Version 1.0.2, 04-NOV-2008, EDW (JPL)
Expanded and improved header
-Icy Version 1.0.1, 09-DEC-2005, EDW (JPL)
Added Examples section.
-Icy Version 1.0.0, 16-JUN-2003, EDW (JPL)
Transform between two uniform numeric time systems
Transform between two additive numeric time systems
Convert one uniform numeric time system to another
Convert one additive numeric time system to another