NAME:
CALDAT
PURPOSE:
Return the calendar date and time given julian date.
This is the inverse of the function JULDAY.
CATEGORY:
Misc.
CALLING SEQUENCE:
CALDAT, Julian, Month, Day, Year, Hour, Minute, Second
See also: julday, the inverse of this function.
INPUTS:
JULIAN contains the Julian Day Number (which begins at noon) of the
specified calendar date. It should be a long integer.
OUTPUTS:
(Trailing parameters may be omitted if not required.)
MONTH: Number of the desired month (1 = January, ..., 12 = December).
DAY: Number of day of the month.
YEAR: Number of the desired year.
HOUR: Hour of the day
Minute: Minute of the day
Second: Second (and fractions) of the day.
KEYWORD PARAMETERS:
NDAYSPM: for using a calendar with fixed number of days per
months. defaut value of NDAYSPM=30
COMMON BLOCKS: cm_4cal
SIDE EFFECTS:
None.
RESTRICTIONS:
Accuracy using IEEE double precision numbers is approximately
1/10000th of a second.
MODIFICATION HISTORY:
Translated from "Numerical Recipies in C", by William H. Press,
Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling.
Cambridge University Press, 1988 (second printing).
DMS, July 1992.
DMS, April 1996, Added HOUR, MINUTE and SECOND keyword
AB, 7 December 1997, Generalized to handle array input.
Eric Guilyardi, June 1999
Added key_work ndayspm for fixed number of days per months
AB, 3 January 2000, Make seconds output as DOUBLE in array output.