julday               package:clim.pact               R Documentation

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

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

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

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

     julday(mm,id,iyyy)

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

      mm: month.

      id: day.

    iyyy: year.

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

     real

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

     R.E. Benestad

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

     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

