onOrAfter             package:fCalendar             R Documentation

_O_n_O_r_A_f_t_e_r/_B_e_f_o_r_e _D_a_t_e_s

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

     Compute the date that is a "on-or-after" or "on-or-before"  ans
     n-day.

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

     timeNdayOnOrAfter(charvec, nday = 1, format = "%Y-%m-%d", 
         zone = myFinCenter, FinCenter = myFinCenter)
         
     timeNdayOnOrBefore(charvec, nday = 1, format = "%Y-%m-%d", 
         zone = myFinCenter, FinCenter = myFinCenter)

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

 charvec: a character vector of dates and times. 

    nday: an integer vector with entries ranging from  '0' (Sunday) to
          '6' (Saturday). 

  format: the format specification of the input character vector. 

    zone: 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 an object of class 'timeDate'.

     'timeNdayOnOrAfter' returns the date in the specified month   
     that is a n-day (e.g. Sun-day) on or after the given date. Month
     and date are given through the argument 'charvec'.

     For the function 'timeNdayOnOrBefore' the date that is a n-day  on
     or before the given date will be returned.

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

     ## Date as character String:
        charvec = "2006-04-16"
        
     ## timeNdayOnOrAfter
        # What date has the first Monday on or after March 15, 1986 ?
        timeNdayOnOrAfter("1986-03-15", 1)
         
     ## timeNdayOnOrBefore
        # What date has Friday on or before April 22, 1977 ?
        timeNdayOnOrBefore("1986-03-15", 5)

