Home
last modified time | relevance | path

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

/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py596 first_day, days_in_month = calendar.monthrange(year, self.m)
600 # so we need first_day + 1 to get 1 = Monday -> 7 = Sunday,
605 month_day = (self.d - (first_day + 1)) % 7 + 1
/third_party/python/Modules/
H A D_zoneinfo.c1179 int8_t first_day = (ymd_to_ord(year, self->month, 1) + 6) % 7; in calendarrule_year_to_timestamp() local
1186 // 1. calendar says 0 = Monday, POSIX says 0 = Sunday so we need first_day in calendarrule_year_to_timestamp()
1192 int8_t month_day = ((int8_t)(self->day) - (first_day + 1)) % 7; in calendarrule_year_to_timestamp()
H A D_datetimemodule.c387 int first_day = ymd_to_ord(year, 1, 1); /* ord of 1/1 */ in iso_week1_monday() local
389 int first_weekday = (first_day + 6) % 7; in iso_week1_monday()
391 int week1_monday = first_day - first_weekday; in iso_week1_monday()

Completed in 25 milliseconds