Added ability to convert from datetime.date to system_clock::time_point (#1848)

* Added ability to convert from Python datetime.date and datetime.time to C++ system_clock::time_point
This commit is contained in:
phil-zxx
2019-07-19 10:28:48 +01:00
committed by Wenzel Jakob
parent a3f4a0e8ab
commit c6b699d9c2
3 changed files with 96 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ Provided conversions
.. rubric:: Python to C++
- ``datetime.datetime````std::chrono::system_clock::time_point``
- ``datetime.datetime`` or ``datetime.date`` or ``datetime.time````std::chrono::system_clock::time_point``
Date/time objects are converted into system clock timepoints. Any
timezone information is ignored and the type is treated as a naive
object.