n-th n-day dates
calendar-nDay.RdComputes the date for the n-th or last occurrence of an n-day in year/month.
Usage
timeNthNdayInMonth(charvec, nday = 1, nth = 1, format = "%Y-%m-%d",
zone = "", FinCenter = "")
timeLastNdayInMonth(charvec, nday = 1, format = "%Y-%m-%d",
zone = "", FinCenter = "")Arguments
- charvec
a character vector or object from a class representing time, such as
"timeDate","POSIXlt", etc.- nday
an integer vector with entries ranging from
0(Sunday) to6(Saturday).- nth
an integer vector numbering the n-th occurence.
- 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 location of the financial center named as “continent/city”.
Details
timeNthNdayInMonth returns the nth occurrence of a n-day
(nth = 1,...,5) in year, month.
timeLastNdayInMonth returns the last nday in
year, month.