#include <chrono.h>
Public Types | |
using | days = std::chrono::duration< uint_fast32_t, std::ratio< 86400 >> |
using | period = typename type::period |
typedef type::rep | rep |
Public Member Functions | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (type, _("datetime.timedelta")) | |
Static Public Member Functions | |
static handle | cast (const type &src, return_value_policy, handle) |
static const std::chrono::duration< rep, period > & | get_duration (const std::chrono::duration< rep, period > &src) |
template<typename Clock > | |
static std::chrono::duration< rep, period > | get_duration (const std::chrono::time_point< Clock, std::chrono::duration< rep, period >> &src) |
using duration_caster< type >::days = std::chrono::duration<uint_fast32_t, std::ratio<86400>> |
using duration_caster< type >::period = typename type::period |
typedef type::rep duration_caster< type >::rep |
|
inlinestatic |
|
inline |
duration_caster< type >::PYBIND11_TYPE_CASTER | ( | type | , |
_("datetime.timedelta") | |||
) |