Home
last modified time | relevance | path

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

/third_party/python/Lib/
H A D_strptime.py276 first_weekday = datetime_date(year, 1, 1).weekday()
281 first_weekday = (first_weekday + 1) % 7
285 week_0_length = (7 - first_weekday) % 7
287 return 1 + day_of_week - first_weekday
H A Ddatetime.py470 first_weekday = _ymd2ord(year, 1, 1) % 7
471 if (first_weekday == 4 or (first_weekday == 3 and
/third_party/python/Modules/
H A D_datetimemodule.c389 int first_weekday = (first_day + 6) % 7; in iso_week1_monday() local
391 int week1_monday = first_day - first_weekday; in iso_week1_monday()
393 if (first_weekday > 3) /* if 1/1 was Fri, Sat, Sun */ in iso_week1_monday()
406 int first_weekday = weekday(iso_year, 1, 1); in iso_to_ymd() local
407 if (first_weekday == 3 || (first_weekday == 2 && is_leap(iso_year))) { in iso_to_ymd()

Completed in 14 milliseconds