| 1538 | |
| 1539 | template <typename T, int SHIFT> |
| 1540 | void ConvertDatesShift(const ChunkedArray& data, int64_t* out_values) { |
| 1541 | for (int c = 0; c < data.num_chunks(); c++) { |
| 1542 | const auto& arr = *data.chunk(c); |
| 1543 | const T* in_values = GetPrimitiveValues<T>(arr); |
| 1544 | for (int64_t i = 0; i < arr.length(); ++i) { |
| 1545 | *out_values++ = arr.IsNull(i) ? kPandasTimestampNull |
| 1546 | : static_cast<int64_t>(in_values[i]) / SHIFT; |
| 1547 | } |
| 1548 | } |
| 1549 | } |
| 1550 | |
| 1551 | class DatetimeDayWriter : public TypedPandasWriter<NPY_DATETIME> { |
| 1552 | public: |
nothing calls this directly
no test coverage detected