We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using #include <pybind11/chrono.h> we can define
#include <pybind11/chrono.h>
def(py::init([](const std::chrono::system_clock::time_point& obj)
so that we can convert between std::chrono and python's datetime.
std::chrono
datetime
Is there a similar concept for conversions between std::chrono and numpy's datetime64? I had a look at pybind11/numpy.h but couldn't find anything.
datetime64
pybind11/numpy.h
I am happy implement it and submit a PR, if someone could point me in the right direction for how to do it. Many thanks!
The text was updated successfully, but these errors were encountered:
I've tried it myself, please see PR.
Sorry, something went wrong.
No branches or pull requests
Using
#include <pybind11/chrono.h>
we can defineso that we can convert between
std::chrono
and python'sdatetime
.Is there a similar concept for conversions between
std::chrono
and numpy'sdatetime64
? I had a look atpybind11/numpy.h
but couldn't find anything.I am happy implement it and submit a PR, if someone could point me in the right direction for how to do it. Many thanks!
The text was updated successfully, but these errors were encountered: