Home
last modified time | relevance | path

Searched refs:GET_TD_DAYS (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
D_datetimemodule.c93 #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()
[all …]
/external/python/cpython2/Modules/
Ddatetimemodule.c82 #define GET_TD_DAYS(o) (((PyDateTime_Delta *)(o))->days) macro
841 const int days = GET_TD_DAYS(u); in call_utc_tzinfo_method()
1508 x1 = PyInt_FromLong(GET_TD_DAYS(self)); in delta_to_microseconds()
1686 int days = GET_TD_DAYS(left) + GET_TD_DAYS(right); in delta_add()
1701 return new_delta(-GET_TD_DAYS(self), in delta_negative()
1713 return new_delta(GET_TD_DAYS(self), in delta_positive()
1727 if (GET_TD_DAYS(self) < 0) in delta_abs()
1745 int days = GET_TD_DAYS(left) - GET_TD_DAYS(right); in delta_subtract()
1767 diff = GET_TD_DAYS(self) - GET_TD_DAYS(other); in delta_richcompare()
2023 return (GET_TD_DAYS(self) != 0 in delta_nonzero()
[all …]