Ah, yes. "Not all of Usenet was part of the British Empire in the
sixteenth century." ;-) But Lew's right that the Gregorian calendar
under which *we* currently operate didn't exist prior to 1752... before
then it was a Gregorian calendar under which we didn't operate!
The OP might be better served by just figuring out the current date
and backtracking according to whatever algorithm he's using. For
example, if he's using the rule "leap year every four years except
centuries except 400-year centuries," then his "January 1st" will
fall on a Sunday, I think.
[Windows tells me that 1 Jan 2000 was a Sunday, and Google tells
me that
(2000/4 - 2000/100 + 2000/400 + 2000*365) mod 7 = 0
Thus I conclude that 1 Jan 0000 was a Sunday. And yes, I know there
was no 1 Jan 0000. I don't think the OP will care as long as his
program works.]
Of course, there's only seven possibilities. The OP might as well
employ trial and error --- only one of the seven possibilities for
"January 1st" will produce the correct day of the week for today.
-Arthur