hmm...i must be a freakin' moron
because i really don't under stand...
assume:
year = 2002
month = 2 (february)
daysInMonth = 28
[(1 + y + (y / 4) - (y / 100) + (y / 400) + ( daysInMonth * month)] % 7
gives you the proper start day in the month....
because i really don't under stand...
assume:
year = 2002
month = 2 (february)
daysInMonth = 28
[(1 + y + (y / 4) - (y / 100) + (y / 400) + ( daysInMonth * month)] % 7
gives you the proper start day in the month....
0 Comments:
Post a Comment
<< Home