Home
last modified time | relevance | path

Searched refs:PyDateTime_Delta (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Modules/
D_datetimemodule.c93 #define GET_TD_DAYS(o) (((PyDateTime_Delta *)(o))->days)
94 #define GET_TD_SECONDS(o) (((PyDateTime_Delta *)(o))->seconds)
95 #define GET_TD_MICROSECONDS(o) (((PyDateTime_Delta *)(o))->microseconds)
1014 PyDateTime_Delta *self; in new_delta_ex()
1024 self = (PyDateTime_Delta *) (type->tp_alloc(type, 0)); in new_delta_ex()
1075 static int delta_bool(PyDateTime_Delta *self);
1084 if (name == NULL && delta_bool((PyDateTime_Delta *)offset) == 0) { in new_timezone()
1341 static PyObject *delta_negative(PyDateTime_Delta *self);
1374 Py_SETREF(offset, delta_negative((PyDateTime_Delta *)offset)); in format_utcoffset()
1741 delta_to_microseconds(PyDateTime_Delta *self) in delta_to_microseconds()
[all …]
/external/python/cpython3/Include/
Ddatetime.h41 } PyDateTime_Delta; typedef
143 #define PyDateTime_DELTA_GET_DAYS(o) (((PyDateTime_Delta*)o)->days)
144 #define PyDateTime_DELTA_GET_SECONDS(o) (((PyDateTime_Delta*)o)->seconds)
146 (((PyDateTime_Delta*)o)->microseconds)
/external/python/cpython2/Modules/
Ddatetimemodule.c82 #define GET_TD_DAYS(o) (((PyDateTime_Delta *)(o))->days)
83 #define GET_TD_SECONDS(o) (((PyDateTime_Delta *)(o))->seconds)
84 #define GET_TD_MICROSECONDS(o) (((PyDateTime_Delta *)(o))->microseconds)
734 PyDateTime_Delta *self; in new_delta_ex()
744 self = (PyDateTime_Delta *) (type->tp_alloc(type, 0)); in new_delta_ex()
1501 delta_to_microseconds(PyDateTime_Delta *self) in delta_to_microseconds()
1635 multiply_int_timedelta(PyObject *intobj, PyDateTime_Delta *delta) in multiply_int_timedelta()
1656 divide_timedelta_int(PyDateTime_Delta *delta, PyObject *intobj) in divide_timedelta_int()
1699 delta_negative(PyDateTime_Delta *self) in delta_negative()
1708 delta_positive(PyDateTime_Delta *self) in delta_positive()
[all …]
/external/python/cpython3/Doc/c-api/
Ddatetime.rst198 instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument must
201 .. c:function:: int PyDateTime_DELTA_GET_DAYS(PyDateTime_Delta *o)
208 .. c:function:: int PyDateTime_DELTA_GET_SECONDS(PyDateTime_Delta *o)
215 .. c:function:: int PyDateTime_DELTA_GET_MICROSECONDS(PyDateTime_Delta *o)
/external/python/cpython2/Include/
Ddatetime.h41 } PyDateTime_Delta; typedef
/external/python/cpython3/Misc/
DHISTORY10543 - Issue #13727: Add 3 macros to access PyDateTime_Delta members: