Hey Peter,
Yes, it's missing an open parenthesis just after the subtraction.
Should be:
D = (19*(Y mod 19) + 15) mod 30 + (2 * (Y mod 4) + 4 * (Y mod 7) -
((19*(Y mod 19) + 15) mod 30) + 34) mod 7 + 127
Ken
On 8/29/21 5:28 PM, Peter Noeth wrote:
Ken,
You have unbalanced parenthesis..... Can you please correct?
Regards,
Peter
Easter (according to Wikipedia):
Y = Year
D = (19*(Y mod 19) + 15) mod 30 + (2 * (Y mod 4) + 4 * (Y mod 7) -
(19*(Y mod 19) + 15) mod 30) + 34) mod 7 + 127
Month = floor( D / 31)
Day = (D mod 31) + 1
What, that didn't just roll off the top of your head back in the
80's? :D
Ken