Lines Matching refs:PyDateTime_Delta
93 #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()
1882 multiply_int_timedelta(PyObject *intobj, PyDateTime_Delta *delta) in multiply_int_timedelta()
1931 multiply_truedivide_timedelta_float(PyDateTime_Delta *delta, PyObject *floatobj, int op) in multiply_truedivide_timedelta_float()
1963 divide_timedelta_int(PyDateTime_Delta *delta, PyObject *intobj) in divide_timedelta_int()
1984 divide_timedelta_timedelta(PyDateTime_Delta *left, PyDateTime_Delta *right) in divide_timedelta_timedelta()
2007 truedivide_timedelta_timedelta(PyDateTime_Delta *left, PyDateTime_Delta *right) in truedivide_timedelta_timedelta()
2030 truedivide_timedelta_int(PyDateTime_Delta *delta, PyObject *i) in truedivide_timedelta_int()
2070 delta_negative(PyDateTime_Delta *self) in delta_negative()
2079 delta_positive(PyDateTime_Delta *self) in delta_positive()
2091 delta_abs(PyDateTime_Delta *self) in delta_abs()
2153 static PyObject *delta_getstate(PyDateTime_Delta *self);
2156 delta_hash(PyDateTime_Delta *self) in delta_hash()
2177 (PyDateTime_Delta *) left); in delta_multiply()
2180 (PyDateTime_Delta *) left, right, 0); in delta_multiply()
2184 (PyDateTime_Delta *) right); in delta_multiply()
2187 (PyDateTime_Delta *) right, left, 0); in delta_multiply()
2203 (PyDateTime_Delta *)left, in delta_divide()
2207 (PyDateTime_Delta *)left, in delta_divide()
2208 (PyDateTime_Delta *)right); in delta_divide()
2224 (PyDateTime_Delta *)left, in delta_truedivide()
2225 (PyDateTime_Delta *)right); in delta_truedivide()
2228 (PyDateTime_Delta *)left, right, 1); in delta_truedivide()
2231 (PyDateTime_Delta *)left, right); in delta_truedivide()
2250 pyus_left = delta_to_microseconds((PyDateTime_Delta *)left); in delta_remainder()
2254 pyus_right = delta_to_microseconds((PyDateTime_Delta *)right); in delta_remainder()
2286 pyus_left = delta_to_microseconds((PyDateTime_Delta *)left); in delta_divmod()
2290 pyus_right = delta_to_microseconds((PyDateTime_Delta *)right); in delta_divmod()
2517 delta_bool(PyDateTime_Delta *self) in delta_bool()
2525 delta_repr(PyDateTime_Delta *self) in delta_repr()
2574 delta_str(PyDateTime_Delta *self) in delta_str()
2606 delta_getstate(PyDateTime_Delta *self) in delta_getstate()
2619 total_microseconds = delta_to_microseconds((PyDateTime_Delta *)self); in delta_total_seconds()
2630 delta_reduce(PyDateTime_Delta* self) in delta_reduce()
2635 #define OFFSET(field) offsetof(PyDateTime_Delta, field)
2706 sizeof(PyDateTime_Delta), /* tp_basicsize */
2977 add_date_timedelta(PyDateTime_Date *date, PyDateTime_Delta *delta, int negate) in add_date_timedelta()
3002 (PyDateTime_Delta *) right, in date_add()
3012 (PyDateTime_Delta *) left, in date_add()
3038 (PyDateTime_Delta *) right, in date_subtract()
3417 PyDateTime_Delta *delta,
3427 PyDateTime_Delta *delta = NULL; in tzinfo_fromutc()
3458 delta = (PyDateTime_Delta *)delta_subtract(off, dst); in tzinfo_fromutc()
3471 if (delta_bool((PyDateTime_Delta *)dst) != 0) { in tzinfo_fromutc()
3473 (PyDateTime_Delta *)dst, 1)); in tzinfo_fromutc()
3659 return delta_hash((PyDateTime_Delta *)self->offset); in timezone_hash()
3713 offset = delta_negative((PyDateTime_Delta *)self->offset); in timezone_str()
3782 return add_datetime_timedelta(dt, (PyDateTime_Delta *)self->offset, 1); in timezone_fromutc()
5132 add_datetime_timedelta(PyDateTime_DateTime *date, PyDateTime_Delta *delta, in add_datetime_timedelta()
5167 (PyDateTime_Delta *)right, in datetime_add()
5173 (PyDateTime_Delta *) left, in datetime_add()
5256 (PyDateTime_Delta *)right, in datetime_subtract()
5510 PyDateTime_Delta *delta; in datetime_richcompare()
5513 delta = (PyDateTime_Delta *)datetime_subtract((PyObject *)self, in datetime_richcompare()
5728 seconds = divide_timedelta_timedelta((PyDateTime_Delta *)delta, in local_timezone()
5729 (PyDateTime_Delta *)one_second); in local_timezone()
5815 (PyDateTime_Delta *)offset, -1); in datetime_astimezone()
5881 dstflag = delta_bool((PyDateTime_Delta *)dst); in datetime_timetuple()
6027 (PyDateTime_Delta *)offset, -1); in datetime_utctimetuple()