Home
last modified time | relevance | path

Searched refs:ymd_to_ord (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Misc/
Dcoverity_model.c155 ymd_to_ord(int year, int month, int day) in ymd_to_ord() function
/external/python/cpython2/Modules/
Ddatetimemodule.c328 ymd_to_ord(int year, int month, int day) in ymd_to_ord() function
337 return (ymd_to_ord(year, month, day) + 6) % 7; in weekday()
346 int first_day = ymd_to_ord(year, 1, 1); /* ord of 1/1 */ in iso_week1_monday()
538 int ordinal = ymd_to_ord(*y, *m, 1) + in normalize_y_m_d()
2466 int left_ord = ymd_to_ord(GET_YEAR(left), in date_subtract()
2469 int right_ord = ymd_to_ord(GET_YEAR(right), in date_subtract()
2591 int today = ymd_to_ord(year, GET_MONTH(self), GET_DAY(self)); in date_isocalendar()
2684 return PyInt_FromLong(ymd_to_ord(GET_YEAR(self), GET_MONTH(self), in date_toordinal()
4144 delta_d = ymd_to_ord(GET_YEAR(left), in datetime_subtract()
4147 ymd_to_ord(GET_YEAR(right), in datetime_subtract()
[all …]
/external/python/cpython3/Modules/
D_datetimemodule.c350 ymd_to_ord(int year, int month, int day) in ymd_to_ord() function
359 return (ymd_to_ord(year, month, day) + 6) % 7; in weekday()
368 int first_day = ymd_to_ord(year, 1, 1); /* ord of 1/1 */ in iso_week1_monday()
554 int ordinal = ymd_to_ord(*y, *m, 1) + in normalize_y_m_d()
3027 int left_ord = ymd_to_ord(GET_YEAR(left), in date_subtract()
3030 int right_ord = ymd_to_ord(GET_YEAR(right), in date_subtract()
3133 int today = ymd_to_ord(year, GET_MONTH(self), GET_DAY(self)); in date_isocalendar()
3217 return PyLong_FromLong(ymd_to_ord(GET_YEAR(self), GET_MONTH(self), in date_toordinal()
4704 ordinal = ymd_to_ord(year, month, day); in utc_to_seconds()
5225 delta_d = ymd_to_ord(GET_YEAR(left), in datetime_subtract()
[all …]