Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Zeller flipped solution in Clear category for When is Friday? by veky
def friday(day): # Zeller's congruence
d, m, y = map(int, day.split('.'))
if m <= 2: m += 12; y -= 1
C, Y = divmod(y, 100)
w = d + (m+1)*13//5 + Y + Y//4 + 5*C + C//4
return ~w % 7
Dec. 31, 2021
Comments: