Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Ddatetimemodule.c83 #define GET_TD_SECONDS(o) (((PyDateTime_Delta *)(o))->seconds) macro
848 int ss = days * 24 * 3600 + GET_TD_SECONDS(u); in call_utc_tzinfo_method()
1518 x1 = PyInt_FromLong(GET_TD_SECONDS(self)); /* seconds */ in delta_to_microseconds()
1687 int seconds = GET_TD_SECONDS(left) + GET_TD_SECONDS(right); in delta_add()
1702 -GET_TD_SECONDS(self), in delta_negative()
1714 GET_TD_SECONDS(self), in delta_positive()
1725 assert(GET_TD_SECONDS(self) >= 0); in delta_abs()
1746 int seconds = GET_TD_SECONDS(left) - GET_TD_SECONDS(right); in delta_subtract()
1769 diff = GET_TD_SECONDS(self) - GET_TD_SECONDS(other); in delta_richcompare()
2024 || GET_TD_SECONDS(self) != 0 in delta_nonzero()
[all …]
/external/python/cpython3/Modules/
D_datetimemodule.c94 #define GET_TD_SECONDS(o) (((PyDateTime_Delta *)(o))->seconds) macro
1088 if ((GET_TD_DAYS(offset) == -1 && GET_TD_SECONDS(offset) == 0) || in new_timezone()
1158 if ((GET_TD_DAYS(offset) == -1 && GET_TD_SECONDS(offset) == 0) || in call_tzinfo_method()
1383 seconds = GET_TD_SECONDS(offset); in format_utcoffset()
1758 x1 = PyLong_FromLong(GET_TD_SECONDS(self)); /* seconds */ in delta_to_microseconds()
2058 int seconds = GET_TD_SECONDS(left) + GET_TD_SECONDS(right); in delta_add()
2073 -GET_TD_SECONDS(self), in delta_negative()
2085 GET_TD_SECONDS(self), in delta_positive()
2096 assert(GET_TD_SECONDS(self) >= 0); in delta_abs()
2117 int seconds = GET_TD_SECONDS(left) - GET_TD_SECONDS(right); in delta_subtract()
[all …]