julday {clim.pact} | R Documentation |
The function computes Julian
days from month, day, and year. The code is based on the algortithm
from Press et al. (1989), "Numerical Recipes
in Pascal", Cambridge, p. 10. See also chron
and date
for similar functions. This function was included to avoid the
dependency to the chron
and date
packages. See also caldat
.
Bug correction: 04.02.2005: got rid of 'Warning messages: 1: number of items to replace is not a multiple of replacement length'
julday(mm,id,iyyy)
mm |
month. |
id |
day. |
iyyy |
year. |
real
R.E. Benestad
julday(1,1,1) # 1721424 julday(1,1,1970) # 2440588 julday(9,4,2003) # 2452887 julday(9,4,2003)-julday(1,1,1970) # 12299 julday(9,4,2003)-julday(1,1,2003) # 246 julday(1,1,2003)-julday(1,1,2002) # 365 julday(1,1,2001)-julday(1,1,2000) # 366