(year)
| 2279 | |
| 2280 | |
| 2281 | def _isoweek1monday(year): |
| 2282 | # Helper to calculate the day number of the Monday starting week 1 |
| 2283 | # XXX This could be done more efficiently |
| 2284 | THURSDAY = 3 |
| 2285 | firstday = _ymd2ord(year, 1, 1) |
| 2286 | firstweekday = (firstday + 6) % 7 # See weekday() above |
| 2287 | week1monday = firstday - firstweekday |
| 2288 | if firstweekday > THURSDAY: |
| 2289 | week1monday += 7 |
| 2290 | return week1monday |
| 2291 | |
| 2292 | |
| 2293 | class timezone(tzinfo): |
no test coverage detected