| 1044 | : Converter_Time<value_type, TimestampType>(chunked_array) {} |
| 1045 | |
| 1046 | SEXP Allocate(R_xlen_t n) const { |
| 1047 | cpp11::writable::doubles data(n); |
| 1048 | Rf_classgets(data, arrow::r::data::classes_POSIXct); |
| 1049 | auto array_type = |
| 1050 | checked_cast<const TimestampType*>(this->chunked_array_->type().get()); |
| 1051 | std::string tzone = array_type->timezone(); |
| 1052 | if (tzone.size() > 0) { |
| 1053 | data.attr("tzone") = tzone; |
| 1054 | } |
| 1055 | return data; |
| 1056 | } |
| 1057 | }; |
| 1058 | |
| 1059 | template <typename Type> |