Home
last modified time | relevance | path

Searched refs:first_weekday (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
D_strptime.py282 first_weekday = datetime_date(year, 1, 1).weekday()
287 first_weekday = (first_weekday + 1) % 7
291 week_0_length = (7 - first_weekday) % 7
293 return 1 + day_of_week - first_weekday
/external/python/cpython3/Lib/
D_strptime.py285 first_weekday = datetime_date(year, 1, 1).weekday()
290 first_weekday = (first_weekday + 1) % 7
294 week_0_length = (7 - first_weekday) % 7
296 return 1 + day_of_week - first_weekday
/external/python/cpython2/Modules/
Ddatetimemodule.c348 int first_weekday = (first_day + 6) % 7; in iso_week1_monday() local
350 int week1_monday = first_day - first_weekday; in iso_week1_monday()
352 if (first_weekday > 3) /* if 1/1 was Fri, Sat, Sun */ in iso_week1_monday()
/external/python/cpython3/Modules/
D_datetimemodule.c370 int first_weekday = (first_day + 6) % 7; in iso_week1_monday() local
372 int week1_monday = first_day - first_weekday; in iso_week1_monday()
374 if (first_weekday > 3) /* if 1/1 was Fri, Sat, Sun */ in iso_week1_monday()