Function lupnt::spice::TDBtoStringUTC

Function Documentation

std::string lupnt::spice::TDBtoStringUTC(Real t_tdb, int prec = 3)

Convert string to UTC.

Format a TDB epoch as a UTC calendar string, via SPICE’s et2utc_c with format "C".

Used by TAItoStringUTC and elsewhere for human-readable logging / debugging of simulation epochs.

Parameters:
  • t_tdb – time in TDB

  • prec – precision of the output string (default 3)

  • t_tdb – TDB epoch [s, seconds since J2000]

  • prec – Number of digits of fractional seconds in the output

Returns:

std::string

Returns:

UTC calendar string, e.g. "2025 JUN 07 12:00:00.000"