MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Date_get_functions

Function Date_get_functions

inst/tinytest/cpp/dates.cpp:102–109  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

100
101// [[Rcpp::export]]
102List Date_get_functions(Date x) {
103 Date d = Date(x);
104 return List::create(Named("year") = d.getYear(),
105 Named("month") = d.getMonth(),
106 Named("day") = d.getDay(),
107 Named("wday") = d.getWeekday(),
108 Named("yday") = d.getYearday());
109}
110
111// [[Rcpp::export]]
112List Datetime_get_functions(Datetime x) {

Callers

nothing calls this directly

Calls 7

NamedFunction · 0.85
DateClass · 0.50
getYearMethod · 0.45
getMonthMethod · 0.45
getDayMethod · 0.45
getWeekdayMethod · 0.45
getYeardayMethod · 0.45

Tested by

no test coverage detected