(given a date, what day of the week is it?)
doomsday
is the last day of February. In leap years, doomsday = 2/28
. In normal years, doomsday = 2/29
doomsday
in 2020 is Saturday, 2/29.
Given doomsday
we can compute any day of the week in February:
2/15
=2/29
- 2 weeks = Saturday2/23
=2/29
- 1 week + 1 day = Sunday