Lines Matching refs:GET_TD_DAYS
93 #define GET_TD_DAYS(o) (((PyDateTime_Delta *)(o))->days) macro
1088 if ((GET_TD_DAYS(offset) == -1 && GET_TD_SECONDS(offset) == 0) || in new_timezone()
1089 GET_TD_DAYS(offset) < -1 || GET_TD_DAYS(offset) >= 1) { in new_timezone()
1158 if ((GET_TD_DAYS(offset) == -1 && GET_TD_SECONDS(offset) == 0) || in call_tzinfo_method()
1159 GET_TD_DAYS(offset) < -1 || GET_TD_DAYS(offset) >= 1) { in call_tzinfo_method()
1372 if (GET_TD_DAYS(offset) < 0) { in format_utcoffset()
1748 x1 = PyLong_FromLong(GET_TD_DAYS(self)); in delta_to_microseconds()
2057 int days = GET_TD_DAYS(left) + GET_TD_DAYS(right); in delta_add()
2072 return new_delta(-GET_TD_DAYS(self), in delta_negative()
2084 return new_delta(GET_TD_DAYS(self), in delta_positive()
2098 if (GET_TD_DAYS(self) < 0) in delta_abs()
2116 int days = GET_TD_DAYS(left) - GET_TD_DAYS(right); in delta_subtract()
2131 int diff = GET_TD_DAYS(self) - GET_TD_DAYS(other); in delta_cmp()
2519 return (GET_TD_DAYS(self) != 0 in delta_bool()
2535 if (GET_TD_DAYS(self) != 0) { in delta_repr()
2536 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self))); in delta_repr()
2580 int days = GET_TD_DAYS(self); in delta_str()
2608 return Py_BuildValue("iii", GET_TD_DAYS(self), in delta_getstate()
2982 int deltadays = GET_TD_DAYS(delta); in add_date_timedelta()
3706 (GET_TD_DAYS(self->offset) == 0 && in timezone_str()
3711 if (GET_TD_DAYS(self->offset) < 0) { in timezone_str()
4222 GET_TD_DAYS(offset1) * 86400 - in time_richcompare()
4227 GET_TD_DAYS(offset2) * 86400 - in time_richcompare()
5140 int day = GET_DAY(date) + GET_TD_DAYS(delta) * factor; in add_datetime_timedelta()
5517 diff = GET_TD_DAYS(delta); in datetime_richcompare()