User talk:Ledrug: Difference between revisions

(→‎Last Fridays: One confusing line...)
Line 43:
<lang c>w = y * 365 + (y - 1) / 4 - (y - 1) / 100 + (y - 1) / 400 + 6;</lang>
::I understand that it is math and what multiplication is, but I don't know how it is relevant. --[[User:Mwn3d|Mwn3d]] 01:43, 10 November 2011 (UTC)
::: That's the number of days between Jan 0th of year y and some unspecified past date. All we need is that that number modulo 7 gives day of week of Jan 0th, y AD. --[[User:Ledrug|Ledrug]] 02:09, 10 November 2011 (UTC)
Anonymous user