caldat {clim.pact} | R Documentation |
The function computes month, day, and year from Julian
days. The code is based on the algortithm from Press et al. (1989), "Numerical Recipes
in Pascal", Cambridge, p. 13. See also chron
and date
for similar functions. This function was included to avoid the
dependency to the chron
and date
packages. See also julday
.
caldat(julian)
julian |
The Julian day from 1-1-1. |
a list with: month, day, and year
R.E. Benestad
caldat(1) # month=1, day=2, year=-4713 caldat(1721424) # 1, 1, 1 caldat(2440588) # 1, 1, 1970 caldat(2452887) # 9, 4, 2003