(year)
| 2388 | |
| 2389 | |
| 2390 | def _isoweek1monday(year): |
| 2391 | # Helper to calculate the day number of the Monday starting week 1 |
| 2392 | THURSDAY = 3 |
| 2393 | firstday = _ymd2ord(year, 1, 1) |
| 2394 | firstweekday = (firstday + 6) % 7 # See weekday() above |
| 2395 | week1monday = firstday - firstweekday |
| 2396 | if firstweekday > THURSDAY: |
| 2397 | week1monday += 7 |
| 2398 | return week1monday |
| 2399 | |
| 2400 | |
| 2401 | class timezone(tzinfo): |
no test coverage detected