Home
last modified time | relevance | path

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

/third_party/python/Misc/
H A Dcoverity_model.c147 ymd_to_ord(int year, int month, int day) in ymd_to_ord() function
/third_party/python/Modules/
H A D_zoneinfo.c164 ymd_to_ord(int y, int m, int d);
1179 int8_t first_day = (ymd_to_ord(year, self->month, 1) + 6) % 7; in calendarrule_year_to_timestamp()
1209 int64_t ordinal = ymd_to_ord(year, self->month, month_day) - EPOCHORDINAL; in calendarrule_year_to_timestamp()
1272 // ymd_to_ord calculates the number of days since 0001-01-01, but we want in dayrule_year_to_timestamp()
1274 // the equivalent of ymd_to_ord(1970, 1, 1). in dayrule_year_to_timestamp()
1279 int64_t days_before_year = ymd_to_ord(year, 1, 1) - EPOCHORDINAL - 1; in dayrule_year_to_timestamp()
2180 ymd_to_ord(int y, int m, int d) in ymd_to_ord() function
2213 ord = ymd_to_ord(y, m, d); in get_local_timestamp()
H A D_datetimemodule.c369 ymd_to_ord(int year, int month, int day) in ymd_to_ord() function
378 return (ymd_to_ord(year, month, day) + 6) % 7; in weekday()
387 int first_day = ymd_to_ord(year, 1, 1); /* ord of 1/1 */ in iso_week1_monday()
606 int ordinal = ymd_to_ord(*y, *m, 1) + in normalize_y_m_d()
3200 int left_ord = ymd_to_ord(GET_YEAR(left), in date_subtract()
3203 int right_ord = ymd_to_ord(GET_YEAR(right), in date_subtract()
3436 int today = ymd_to_ord(year, GET_MONTH(self), GET_DAY(self)); in date_isocalendar()
3526 return PyLong_FromLong(ymd_to_ord(GET_YEAR(self), GET_MONTH(self), in date_toordinal()
4994 /* ymd_to_ord() doesn't support year <= 0 */ in utc_to_seconds()
5000 ordinal = ymd_to_ord(yea in utc_to_seconds()
[all...]

Completed in 15 milliseconds