| 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 | } |
nothing calls this directly
no test coverage detected