Sys.time                package:base                R Documentation

_G_e_t _C_u_r_r_e_n_t _D_a_t_e, _T_i_m_e _a_n_d _T_i_m_e_z_o_n_e

_D_e_s_c_r_i_p_t_i_o_n:

     'Sys.time' and 'Sys.Date' returns the system's idea of the current
     date with and without time, and 'Sys.timezone' returns the current
     time zone.

_U_s_a_g_e:

     Sys.time()
     Sys.Date()
     Sys.timezone()

_D_e_t_a_i_l_s:

     'Sys.time' returns an absolute date-time value which can be
     converted in various time zones and may return different days.

     'Sys.Date' returns the day in the current timezone.

_V_a_l_u_e:

     'Sys.time' returns an object of class '"POSIXct"' (see
     DateTimeClasses).

     'Sys.Date' returns an object of class '"Date"' (see Date).

     'Sys.timezone' returns an OS-specific character string, possibly
     an empty string.

_S_e_e _A_l_s_o:

     'date' for the system time in a fixed-format character string.

_E_x_a_m_p_l_e_s:

     Sys.time()
     ## locale-specific version of date()
     format(Sys.time(), "%a %b %d %X %Y")

     Sys.Date()

     Sys.timezone()

