#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/chrono.h>
Public Types | |
using | rep = typename type::rep |
using | period = typename type::period |
using | days = std::chrono::duration< int_least32_t, std::ratio< 86400 > > |
using | rep = typename type::rep |
using | period = typename type::period |
using | days = std::chrono::duration< int_least32_t, std::ratio< 86400 > > |
Public Member Functions | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (type, const_name("datetime.timedelta")) | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (type, const_name("datetime.timedelta")) | |
Static Public Member Functions | |
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) |
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) |
static handle | cast (const type &src, return_value_policy, handle) |
using duration_caster< type >::days = std::chrono::duration<int_least32_t, std::ratio<86400> > |
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 >::period = typename type::period |
using duration_caster< type >::rep = typename type::rep |
using duration_caster< type >::rep = typename type::rep |
|
inlinestatic |
Definition at line 85 of file chrono.h.
References duration_caster< type >::get_duration().
|
inlinestatic |
Definition at line 74 of file chrono.h.
References duration_caster< type >::get_duration().
|
inlinestatic |
Definition at line 74 of file chrono.h.
Referenced by duration_caster< type >::cast().
|
inline |
Definition at line 44 of file chrono.h.
References handle::ptr(), PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_MICROSECONDS, and PyDateTime_DELTA_GET_SECONDS.
|
inline |
Definition at line 33 of file chrono.h.
References handle::ptr(), PyDateTime_DELTA_GET_DAYS, PyDateTime_DELTA_GET_MICROSECONDS, and PyDateTime_DELTA_GET_SECONDS.
duration_caster< type >::PYBIND11_TYPE_CASTER | ( | type | , |
const_name("datetime.timedelta") | |||
) |
References const_name().
duration_caster< type >::PYBIND11_TYPE_CASTER | ( | type | , |
const_name("datetime.timedelta") | |||
) |
References const_name().