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

Method Datetime,double>

inst/include/Rcpp/date_datetime/Datetime.h:128–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 // needed to wrap containers of Date such as vector<Datetime> or map<string,Datetime>
127 namespace internal {
128 template<> inline double caster<Rcpp::Datetime,double>(Rcpp::Datetime from) {
129 return from.getFractionalTimestamp();
130 }
131 template<> inline Rcpp::Datetime caster<double,Rcpp::Datetime>(double from) {
132 return Rcpp::Datetime( from );
133 }

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected