| 1525 | |
| 1526 | template <typename T, int64_t SHIFT> |
| 1527 | inline void ConvertDatetime(const ChunkedArray& data, int64_t* out_values) { |
| 1528 | for (int c = 0; c < data.num_chunks(); c++) { |
| 1529 | const auto& arr = *data.chunk(c); |
| 1530 | const T* in_values = GetPrimitiveValues<T>(arr); |
| 1531 | |
| 1532 | for (int64_t i = 0; i < arr.length(); ++i) { |
| 1533 | *out_values++ = arr.IsNull(i) ? kPandasTimestampNull |
| 1534 | : (static_cast<int64_t>(in_values[i]) * SHIFT); |
| 1535 | } |
| 1536 | } |
| 1537 | } |
| 1538 | |
| 1539 | template <typename T, int SHIFT> |
| 1540 | void ConvertDatesShift(const ChunkedArray& data, int64_t* out_values) { |
nothing calls this directly
no test coverage detected