spicetools.timeutil.times2et
spicetools.timeutil.times2et(times, return_c=False, **kwargs)Convert time to ET (seconds past J2000 TDB).
Parameters
times : str, list-
Time values that will be passed to
~astropy.time.Timefunction. return_c : bool, default = False-
If
True, return an additional ET values as a list of ctypes.c_double. **kwargs : dict-
Additional arguments for
~astropy.time.Timefunction.
Returns
times : astropy.time.Time-
Time object.
ets : list-
List of ET values (seconds past J2000 TDB, as used by SPICE).
ets_c : list-
List of ET values as
ctypes.c_double. Returned only ifreturn_cisTrue.
Notes
Time-scale conversion uses Astropy/ERFA and does not require a loaded SPICE leap-seconds kernel. Its UTC-to-TDB model can differ from SPICE’s model by tens of microseconds. TDB inputs retain their time scale and sub-millisecond precision.