public static function Taiut1($tai1, $tai2, $dta, &$ut11, &$ut12) {
    $dtad;

    /* Result, safeguarding precision. */
    $dtad = $dta / DAYSEC;
    if ($tai1 > $tai2) {
      $ut11 = $tai1;
      $ut12 = $tai2 + $dtad;
    }
    else {
      $ut11 = $tai1 + $dtad;
      $ut12 = $tai2;
    }

    /* Status (always OK). */
    return 0;
  }
public static function Taiut1($tai1, $tai2, $dta, &$ut11, &$ut12) {
    $dtad;

    /* Result, safeguarding precision. */
    $dtad = $dta / DAYSEC;
    if ($tai1 > $tai2) {
      $ut11 = $tai1;
      $ut12 = $tai2 + $dtad;
    }
    else {
      $ut11 = $tai1 + $dtad;
      $ut12 = $tai2;
    }

    /* Status (always OK). */
    return 0;
  }
public static function Taiut1 ( $ tai1 , $ tai2 , $ dta , & $ ut11 , & $ ut12 ) { $ dtad ; /* Result, safeguarding precision. */ $ dtad = $ dta / DAYSEC ; if ( $ tai1 > $ tai2 ) { $ ut11 = $ tai1 ; $ ut12 = $ tai2 + $ dtad ; } else { $ ut11 = $ tai1 + $ dtad ; $ ut12 = $ tai2 ; } /* Status (always OK). */ return 0 ; }
- - - - - - - - - -
i a u T a i u t 1
- - - - - - - - - -

Time scale transformation:  International Atomic Time, TAI, to
Universal Time, UT1.

This function is part of the International Astronomical Union's
SOFA (Standards of Fundamental Astronomy) software collection.

Status:  canonical.

Given:
tai1,tai2  double    TAI as a 2-part Julian Date
dta        double    UT1-TAI in seconds

Returned:
ut11,ut12  double    UT1 as a 2-part Julian Date

Returned (function value):
int       status:  0 = OK

Notes:

1) tai1+tai2 is Julian Date, apportioned in any convenient way
between the two arguments, for example where tai1 is the Julian
Day Number and tai2 is the fraction of a day.  The returned
UT11,UT12 follow suit.

2) The argument dta, i.e. UT1-TAI, is an observed quantity, and is
available from IERS tabulations.

Reference:

Explanatory Supplement to the Astronomical Almanac,
P. Kenneth Seidelmann (ed), University Science Books (1992)

This revision:  2013 June 18

SOFA release 2015-02-09

Copyright (C) 2015 IAU SOFA Board.  See notes at end.
- - - - - - - - - - i a u T a i u t 1 - - - - - - - - - -