timeCalendar            package:fCalendar            R Documentation

'_t_i_m_e_D_a_t_e' _f_r_o_m _C_a_l_e_n_d_a_r _A_t_o_m_s

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

     Create a 'timeDate' object from calendar atoms.

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

     timeCalendar(y = currentYear, m = 1:12, d = 1,
         h = 0, min = 0, s = 0,
         zone = myFinCenter, FinCenter = myFinCenter)

_A_r_g_u_m_e_n_t_s:

 y, m, d: calendar years (e.g. 1997), defaults are 1960, calendar
          months (1-12), defaults are 1, and calendar days (1-31),
          defaults are 1, 


h, min, s: hours of the days (0-23), defaults are 0, minutes of the
          days (0-59), defaults are 0, and seconds of the days (0-59),
          defaults are 0. 

    zone: a character string, denoting the time zone or financial 
          center where the data were recorded. 

FinCenter: a character with the the location of the financial center
          named as "continent/city". 

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

     returns a S4 object of 'class' '"timeDate"'.

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

     ## timeCalendar -
        
        # Current Year:
        currentYear
        
        # 12 months of current year
        timeCalendar() 
        
        timeCalendar(m = c(9, 1, 8, 2), d = c(28, 15, 30, 9),
                     y = c(1989, 2001, 2004, 1990), FinCenter = "GMT")
        
        timeCalendar(m = c(9, 1, 8, 2), d = c(28, 15, 30, 9),
                     y = c(1989, 2001, 2004, 1990), FinCenter = "Europe/Zurich")
                     
        timeCalendar(h = c(9, 14), min = c(15, 23))

