caldat               package:clim.pact               R Documentation

_C_o_n_v_e_r_t_s _J_u_l_i_a_n _d_a_y_s _t_o _m_o_n_t_h, _d_a_y, _a_n_d _y_e_a_r

_D_e_s_c_r_i_p_t_i_o_n:

     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'.

_U_s_a_g_e:

     caldat(julian)

_A_r_g_u_m_e_n_t_s:

  julian: The Julian day from 1-1-1.

_V_a_l_u_e:

     real

_A_u_t_h_o_r(_s):

     R.E. Benestad

_E_x_a_m_p_l_e_s:

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

