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")

