getDayOfWeek {fCalendar} | R Documentation |
Returns the day of the week or the day of the week.
getDayOfWeek | Returns the day of the week to a 'timeDate' object, |
getDayOfYear | Returns the day of the year to a 'timeDate' object. |
getDayOfWeek(x) getDayOfYear(x)
x |
an object of class timeDate .
|
the function getDayOfWeek
returns a three letter character
string with the names of the day of the week, and the function
getDayOfYear
returns the day count as integer value starting
January, 1st.
timeDate
## Dates in April, currentYear: tS = timeSequence( from = paste(currentYear, "-03-01", sep = ""), to = paste(currentYear, "-04-30", sep = "")) tS ## Subset Wednesdays: getDayOfWeek(tS) tS[getDayOfWeek(tS) == "Wed"]