Talk:Holidays related to Easter: Difference between revisions

m (Insert 1st section header.)
Line 34:
 
There is an inconsistency in the results of the solutions on this page for negative years. (Yes, I know that Easter didn't exist back then, but this is just from an algorithmic perspective.) For example, for the year -1 (i.e. 2 B.C.), the C code produces an Easter date of March 27, while the Ruby code produces April 18. I believe this is due to the different behavior of the modulo operator for negative numbers. --[[User:Spoon!|Spoon!]] 23:43, 18 December 2011 (UTC)
 
For 2 BCE, Julian (Orthodox) Easter rules should apply, and Easter should be April 20 (Julian). But you apply Gregorian rules and use the Gregorian calendar, then April 18 is correct. (In fact, both sets of rules produce the same result in this instance, since those dates refer to the same Sunday). So the C code is incorrect in this instance. --[[User:Markjreed|Markjreed]] ([[User talk:Markjreed|talk]]) 03:01, 16 January 2021 (UTC)
1,480

edits