This function converts a Julian Date from the Barycentric Dynamical Timescale (TDB) to the Barycentric Coordinate Timescale (TCB).

The conversion relies on the relation between TCB and TDB defined by the IAU 2006 Resolution B3 : "Re-definition of Barycentric Dynamical Time, TDB".

The input Julian Date is provided as two double-precision numbers (jd0_tdb and jdfrac_tdb) to maintain precision. The result is returned in the output variables jd0_tcb and jdfrac_tcb.

The following example converts a TDB date to TCB:

t_calcephbin *peph;
double jd0_tdb = 2451545.0;
double jdfrac_tdb = 0.5;
double jd0_tcb, jdfrac_tcb;

/* open the ephemeris file */
peph = calceph_open("example_lsk.tls");
if (peph != NULL)
{
    /* Convert TDB to TCB */
    if (calceph_time_jd_tdb_to_jd_tcb(peph, jd0_tdb, jdfrac_tdb,
                                     &jd0_tcb, &jdfrac_tcb) != 0)
    {
        printf("TCB Date: %f + %f\n", jd0_tcb, jdfrac_tcb);
    }

    calceph_close(peph);
}