Repository navigation
Easter
Jan Hermann edited this page Oct 19, 2026
·
1 revision
🐰
Algorithms to calculate the date of Easter Sunday: namespace Timely\Easter, Java package timely.easter.
-
Butcher's Algorithm (
easterSundayButcher)- Calculates Easter Sunday in the Gregorian calendar using Butcher's explicit formula.
- Input:
int year - Output:
int[]in format[day, month, year]
-
Oudin's Algorithm (
easterSundayOudin)- Alternative astronomical/mathematical method for calculating Easter Sunday in the Gregorian calendar.
- Input:
int year - Output:
int[]in format[day, month, year]
-
Meeus's Algorithm (
easterSundayMeeus)- Calculates Easter Sunday in the Julian calendar.
- Input:
int year - Output:
int[]in format[day, month, year]
-
Calculator::sunday(?int $year): Returns Easter Sunday as aDateTime. Useseaster_days()when thecalendarextension is installed, otherwise Butcher's algorithm. -
Calculator::friday(?int $year)andCalculator::monday(?int $year): Good Friday and Easter Monday. -
Calculator::sundayButcher(int $year): Butcher's algorithm ported to PHP.
use Timely\Easter\Calculator;
Calculator::sunday(2026)->format("j.n.Y"); // "5.4.2026"JavaScript class Timely.Calculator with sundayOudin(year), friday(year) and monday(year), each returning a Converter; see JavaScript.
Try it in the Examples (examples/easter.html). The Holidays use EasterCalculator for holidays relative to Easter.