MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Date,double>

Method Date,double>

inst/include/Rcpp/date_datetime/Date.h:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 // needed to wrap containers of Date such as vector<Date> or map<string,Date>
142 namespace internal {
143 template<> inline double caster<Rcpp::Date,double>(Rcpp::Date from) {
144 return static_cast<double>(from.getDate());
145 }
146 template<> inline Rcpp::Date caster<double,Rcpp::Date>(double from) {
147 return Rcpp::Date(static_cast<int>(from));
148 }

Callers

nothing calls this directly

Calls 1

getDateMethod · 0.80

Tested by

no test coverage detected