palCaldj
palCaldj
- Gregorian Calendar to Modified Julian Date
- Description:
- Modified Julian Date to Gregorian Calendar with special
behaviour for 2-digit years relating to 1950 to 2049.
- Invocation:
- void palCaldj ( int iy, int im, int id, double
djm, int
j );
- Arguments:
-
-
iy = int (Given)
-
Year in the Gregorian calendar
-
im = int (Given)
-
Month in the Gergorian calendar
-
id = int (Given)
-
Day in the Gregorian calendar
-
djm = double
(Returned)
-
Modified Julian Date (JD-2400000.5) for 0 hrs
-
j = status (Returned)
-
0 = OK. See iauCal2jd for other values.
- Notes:
- Uses iauCal2jd
- Unlike iauCal2jd this routine treats the years 0-100 as
referring to the end of the 20th Century and beginning of
the 21st Century. If this behaviour is not acceptable
use the SOFA routine directly or palCldj.
Acceptable years are 00-49, interpreted as 2000-2049,
50-99, " " 1950-1999,
all others, interpreted literally.
- Unlike SLA this routine will work with negative years.