Function lupnt::spice::ConvertTime

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 between from_time and to_time at t via SPICE and applies it as a (autodiff-preserving) shift to t, so the returned Real retains t’s derivative information.

Parameters:
  • t – Input time value [s]

  • from_timeTime system of t

  • to_time – Desired output time system

Returns:

t converted to to_time [s]