caldat {clim.pact}R Documentation

Converts Julian days to month, day, and year

Description

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.

Usage

caldat(julian)

Arguments

julian The Julian day from 1-1-1.

Value

a list with: month, day, and year

Author(s)

R.E. Benestad

Examples

caldat(1)        # month=1, day=2, year=-4713
caldat(1721424)  #       1,     1,          1
caldat(2440588)  #       1,     1,       1970
caldat(2452887)  #       9,     4,       2003

[Package clim.pact version 2.2-15 Index]