Function lupnt::spice::ConvertTime¶
Defined in File spice.h
Function Documentation¶
-
Real lupnt::spice::ConvertTime(Real t, Time from_time, Time to_time)¶
Convert a time value between time systems (TAI, TDB, TT, UTC, GPS, …) using SPICE’s
unitim_c.A SPICE-based alternative to
lupnt::ConvertTime(time_conversions.h); computes the offset betweenfrom_timeandto_timeattvia SPICE and applies it as a (autodiff-preserving) shift tot, so the returnedRealretainst’s derivative information.- Parameters:
t – Input time value [s]
from_time – Time system of
tto_time – Desired output time system
- Returns:
tconverted toto_time[s]