RcppBDT Date functions | R Documentation |
This constants are provided for convenience. In the C++ sources, enumeration types are used for days of the week, months of the year as well as the ordering terms.
Similar package-level constants are provided here as well. This should be considered as experimental and may be withdrawn in a later version of the package.
getEndOfBizWeek(date) getEndOfMonth(date) getYear(date) getMonth(date) getDay(date) getDayOfWeek(date) getDayOfYear(date) getIMMDate(mon, year) getNthDayOfWeek(nthday, dow, mon, year) getLastDayOfWeekInMonth(dow, mon, year) getFirstDayOfWeekInMonth(dow, mon, year) getFirstDayOfWeekAfter(dow, date) getLastDayOfWeekBefore(dow, date)
date |
a |
mon |
a month, specified either as an integer or one of the
constants |
year |
a four-digit year, specified as an integer |
nthday |
either an integer between 1 and 5, or one of the
constants |
dow |
either an integer between 0 and 6 denoting a day of the
week, or one of the constants |
Details of the Boost functions are provided by the Boost documentation.
All functions return a Date
object.
Dirk Eddelbuettel edd@debian.org
Boost Date_Time: https://www.boost.org/doc/libs/release/doc/html/date_time.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.