Doomsday rule: Difference between revisions

m
no edit summary
m (→‎{{header|Julia}}: fix leap year century logic)
mNo edit summary
Line 12:
The formula is calculated assuming that Sunday is 0, Monday 1, and so forth with Saturday 7, and
 
anchordaydoomsday = (Tuesday(or 2) + 5(y mod 4) + 4(y mod 100) + 6(y mod 400)) % 7
 
which, for 2021, is 0 (Sunday).
4,105

edits