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

Definition at line 3 of file tttai.c.

References ERFA_DAYSEC, and ERFA_TTMTAI.

Referenced by t_tttai().

39 {
40 
41 /* TT minus TAI (days). */
42  static const double dtat = ERFA_TTMTAI/ERFA_DAYSEC;
43 
44 /* Result, safeguarding precision. */
45  if ( tt1 > tt2 ) {
46  *tai1 = tt1;
47  *tai2 = tt2 - dtat;
48  } else {
49  *tai1 = tt1 - dtat;
50  *tai2 = tt2;
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: