Function cast

Function cast#

Function Documentation#

static handle cast(const std::chrono::time_point<std::chrono::system_clock, Duration> &src, return_value_policy, handle)#

Given a std::chrono::time_point, return a Python object that represents it (a datetime).

Parameters:

src – The input time_point.

Returns:

A handle to the new Python object that represents the input time_point as a Python datetime.