home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / date / date.mdy < prev    next >
Encoding:
Text File  |  1997-09-13  |  728 b   |  27 lines

  1.     
  2.     _C_o_n_v_e_r_t _f_r_o_m _J_u_l_i_a_n _d_a_t_e_s _t_o _m_o_n_t_h, _d_a_y, _a_n_d _y_e_a_r.
  3.     
  4.          date.mdy(sdate, weekday=F)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.             sdate:
  9.          a Julian date value, as returned by the mdy.date func-
  10.          tion, number of days since 1/1/1960.
  11.     
  12.           weekday:
  13.          if TRUE, then the returned list also will contain the
  14.          day of the week.  Sunday=1, Saturday=7.
  15.     
  16.          Value:
  17.     
  18.          a list with components month, day, and year.
  19.     
  20.     _E_x_a_m_p_l_e_s:
  21.     
  22.          temp <- sas.mdy(sas.date(month, day, year))
  23.          if (tempay != day) .. #Check for illegal dates, such as 29 Feb in a non leap year
  24.     
  25.          Press, et.al, "Numerical Recipies".
  26.     
  27.