| 950 | : Converter_Time<value_type, TimestampType>(chunked_array) {} |
| 951 | |
| 952 | SEXP Allocate(R_xlen_t n) const { |
| 953 | cpp11::writable::doubles data(n); |
| 954 | Rf_classgets(data, arrow::r::data::classes_POSIXct); |
| 955 | auto array_type = |
| 956 | checked_cast<const TimestampType*>(this->chunked_array_->type().get()); |
| 957 | std::string tzone = array_type->timezone(); |
| 958 | if (tzone.size() > 0) { |
| 959 | data.attr("tzone") = tzone; |
| 960 | } |
| 961 | return data; |
| 962 | } |
| 963 | }; |
| 964 | |
| 965 | template <typename Type> |