I am trying to pass an array of datetime64[ns] into C++ using pybind11. For arrays of integers or floating point values, one can simply use the wrapper py::array_t<int64_t or double>.
Is there a dedicated type in pybind11 for datetime64[ns] in C++ side so that I can capture as py::array_t<DateTime>?
As a sub-optimal solution, it would be already a great improvement if I can instead pass the underlying storage of a datetime64[ns] array which is expected to be stored as an array of int64. Is there any light way (i.e., no copy) to pass this as an array of int64?