weekdays                package:base                R Documentation

_E_x_t_r_a_c_t _P_a_r_t_s _o_f _a _P_O_S_I_X_t _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     Extract the weekday, month or quarter, or the Julian time (days
     since some origin).  These are generic functions: the methods for
     the internal date-time classes are documented here.

_U_s_a_g_e:

     weekdays(x, abbreviate = FALSE)
     months(x, abbreviate = FALSE)
     quarters(x, ...)
     julian(x, origin = as.POSIXct("1970-01-01", tz="GMT"), ...)

_A_r_g_u_m_e_n_t_s:

       x: an object inheriting from class `"POSIXt"'.

abbreviate: logical.  Should the names be abbreviated?

  origin: an length-one object inheriting from class `"POSIXt"'.

     ...: arguments for other methods.

_V_a_l_u_e:

     `weekdays' and `months' return a character vector of names in the
     locale in use.

     `quarters' returns a character vector of `"Q1"' to `"Q4"'.

     `julian' returns the number of days (possibly fractional) since
     the origin, with the origin as a `"origin"' attribute.

_N_o_t_e:

     Other components such as the day of the month or the year are very
     easy to compute: just use `as.POSIXlt' and extract the relevant
     component.

_S_e_e _A_l_s_o:

     `DateTimeClasses'

_E_x_a_m_p_l_e_s:

     weekdays(.leap.seconds)
     months(.leap.seconds)
     quarters(.leap.seconds)

