To whom it may concern,
A MySQL stored function to calculate easter day
I uploaded a MySQL forge snippet for the
f_easter()
function. You can use this function in
MySQL statements to calculate easter sunday for any given year:
mysql> select f_easter(year(now()));
+-----------------------+
| f_easter(year(now())) |
+-----------------------+
| 2010-04-04 |
+-----------------------+
1 row in set (0.00 sec)
Anonymous Gregorian algorithm
To implement it, I simply transcribed the code of the "Anonymous Gregorian algorithm" from
wikipedia's Computus article.
You might ask yourself: "how does …