FACT++  1.0
int eraTttdb ( double  tt1,
double  tt2,
double  dtr,
double *  tdb1,
double *  tdb2 
)

Definition at line 3 of file tttdb.c.

References ERFA_DAYSEC.

Referenced by t_tttdb().

51 {
52  double dtrd;
53 
54 /* Result, safeguarding precision. */
55  dtrd = dtr / ERFA_DAYSEC;
56  if ( tt1 > tt2 ) {
57  *tdb1 = tt1;
58  *tdb2 = tt2 + dtrd;
59  } else {
60  *tdb1 = tt1 + dtrd;
61  *tdb2 = tt2;
62  }
63 
64 /* Status (always OK). */
65  return 0;
66 
67 }
#define ERFA_DAYSEC
Definition: erfam.h:75

+ Here is the caller graph for this function: