Correctness of Sakamoto’s algorithm to find the day of week
Well, you can tell just by looking at it that it is correct… Assuming that the t[] array is correct, which you can verify with just 12 spot checks (one for each month using any day/year). The y -= m < 3 is a nice trick. It creates a “virtual year” that starts on March … Read more