| 1549 | |
| 1550 | template <typename T, int64_t SHIFT> |
| 1551 | inline void ConvertDatetime(const ChunkedArray& data, int64_t* out_values) { |
| 1552 | for (int c = 0; c < data.num_chunks(); c++) { |
| 1553 | const auto& arr = *data.chunk(c); |
| 1554 | const T* in_values = GetPrimitiveValues<T>(arr); |
| 1555 | |
| 1556 | for (int64_t i = 0; i < arr.length(); ++i) { |
| 1557 | *out_values++ = arr.IsNull(i) ? kPandasTimestampNull |
| 1558 | : (static_cast<int64_t>(in_values[i]) * SHIFT); |
| 1559 | } |
| 1560 | } |
| 1561 | } |
| 1562 | |
| 1563 | template <typename T, int SHIFT> |
| 1564 | void ConvertDatesShift(const ChunkedArray& data, int64_t* out_values) { |
nothing calls this directly
no test coverage detected