slaCldj -

SYNOPSYS

void slaCldj(iy, im, id, djm, j)

PARAMETERS

int iy
int im
int id
double *djm
int *j

DESCRIPTION


  Gregorian calendar to Modified Julian Date.

Given

     iy,im,id     int    year, month, day in Gregorian calendar

Returned

     *djm         double Modified Julian Date (JD-2400000.5) for 0 hrs
*j int status
                           0 = OK
                           1 = bad year   (MJD not computed)
                           2 = bad month  (MJD not computed)
                           3 = bad day    (MJD computed)

  The year must be -4699 (i.e. 4700BC) or later.

  The algorithm is derived from that of Hatcher 1984 (QJRAS 25, 53-55).

  P.T.Wallace   Starlink   21 December 1993

SEE ALSO