We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9e935e commit 1a87eedCopy full SHA for 1a87eed
other/doomsday.py
@@ -46,7 +46,7 @@ def get_week_day(year: int, month: int, day: int) -> str:
46
) % 7
47
day_anchor = (
48
DOOMSDAY_NOT_LEAP[month - 1]
49
- if (year % 4 != 0) or ((centurian == 0) and (year % 400 != 0))
+ if year % 4 != 0 or (centurian == 0 and year % 400 != 0)
50
else DOOMSDAY_LEAP[month - 1]
51
)
52
week_day = (dooms_day + day - day_anchor) % 7
0 commit comments