[[Rcpp::export]]
| 110 | |
| 111 | // [[Rcpp::export]] |
| 112 | List Datetime_get_functions(Datetime x) { |
| 113 | Datetime dt = Datetime(x); |
| 114 | return List::create(Named("year") = dt.getYear(), |
| 115 | Named("month") = dt.getMonth(), |
| 116 | Named("day") = dt.getDay(), |
| 117 | Named("wday") = dt.getWeekday(), |
| 118 | Named("hour") = dt.getHours(), |
| 119 | Named("minute") = dt.getMinutes(), |
| 120 | Named("second") = dt.getSeconds(), |
| 121 | Named("microsec") = dt.getMicroSeconds()); |
| 122 | } |
| 123 | |
| 124 | // [[Rcpp::export]] |
| 125 | List Datetime_operators() { |
nothing calls this directly
no test coverage detected