Searched refs:first_weekday (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Lib/ |
D | _strptime.py | 282 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.py | 276 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
|
D | datetime.py | 906 first_weekday = _ymd2ord(year, 1, 1) % 7 907 if (first_weekday == 4 or (first_weekday == 3 and
|
/external/python/cpython3/Modules/ |
D | _datetimemodule.c | 387 int first_weekday = (first_day + 6) % 7; in iso_week1_monday() local 389 int week1_monday = first_day - first_weekday; in iso_week1_monday() 391 if (first_weekday > 3) /* if 1/1 was Fri, Sat, Sun */ in iso_week1_monday() 3039 int first_weekday = weekday(year, 1, 1); in date_fromisocalendar() local 3040 if (first_weekday == 3 || (first_weekday == 2 && is_leap(year))) { in date_fromisocalendar()
|
/external/python/cpython2/Modules/ |
D | datetimemodule.c | 348 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()
|