#include <chrono.h>
Public Types | |
using | days = std::chrono::duration< int_least32_t, std::ratio< 86400 > > |
using | period = typename type::period |
using | rep = typename type::rep |
Public Member Functions | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (type, const_name("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<int_least32_t, std::ratio<86400> > |
using duration_caster< type >::period = typename type::period |
using duration_caster< type >::rep = typename type::rep |
|
inlinestatic |
|
inline |
duration_caster< type >::PYBIND11_TYPE_CASTER | ( | type | , |
const_name("datetime.timedelta") | |||
) |