slaCalyd -

SYNOPSYS

void slaCalyd(iy, im, id, ny, nd, j)

PARAMETERS

int iy
int im
int id
int *ny
int *nd
int *j

DESCRIPTION


  Calendar to year and day in year.

Given

     iy,im,id   int    year, month, day in Gregorian calendar
                       (year may optionally omit the century)

returned

     *ny        int    year AD
     *nd        int    day in year (1 = January 1st)
*j int status
                        -1 = OK, but outside range 1900/3/1-2100/2/28
                         0 = OK, and within above range
                         2 = bad month  (day not computed)
                         3 = bad day    (year,day both computed)

  j=0 means that the date is within the range where the Gregorian
  rule concerning century leap years can be neglected.

  P.T.Wallace   Starlink   31 October 1993

SEE ALSO