FACT++  1.0
int eraTaitt ( double  tai1,
double  tai2,
double *  tt1,
double *  tt2 
)

Definition at line 3 of file taitt.c.

References ERFA_DAYSEC, and ERFA_TTMTAI.

Referenced by eraApco13(), eraApio13(), and t_taitt().

39 {
40 
41 /* TT minus TAI (days). */
42  static const double dtat = ERFA_TTMTAI/ERFA_DAYSEC;
43 
44 /* Result, safeguarding precision. */
45  if ( tai1 > tai2 ) {
46  *tt1 = tai1;
47  *tt2 = tai2 + dtat;
48  } else {
49  *tt1 = tai1 + dtat;
50  *tt2 = tai2;
51  }
52 
53 /* Status (always OK). */
54  return 0;
55 
56 }
#define ERFA_DAYSEC
Definition: erfam.h:75
#define ERFA_TTMTAI
Definition: erfam.h:99

+ Here is the caller graph for this function: