date                  package:base                  R Documentation

_S_y_s_t_e_m _D_a_t_e _a_n_d _T_i_m_e

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

     Returns a character string of the current system date and time.

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

     date()

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

     The string has the form '"Fri Aug 20 11:11:00 1999"', i.e., length
     24, since it relies on POSIX's 'ctime' ensuring the above fixed
     format.  Timezone and Daylight Saving Time are taken account of,
     but _not_ indicated in the result.

     The day and month abbreviations are always in English,
     irrespective of locale.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

_S_e_e _A_l_s_o:

     'Sys.Date' and 'Sys.time'; 'Date' and 'DateTimeClasses' for
     objects representing date and time.

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

     (d <- date())
     nchar(d) == 24

     ## something similar in the current locale
     format(Sys.time(), "%a %b %d %H:%M:%S %Y")

