File Exchange

image thumbnail

easter

version 1.1.0.1 (3.61 KB) by François Beauducel
Computes Catholic Easter Sunday date and other Christian feasts

7 Downloads

Updated 31 May 2019

GitHub view license on GitHub

This little function computes the date of Easter Sunday for present year or specific years, using Oudin's algorithm. It works for the entire Julian calendar (starting 325 AD) and Gregorian calendar (after 1583 AD).

Easter day is useful to calculate other Christian feasts, like Ash Wednesday (Easter - 46), Good Friday (Easter - 2), Ascension Thursday (Easter + 39), Pentecost (Easter + 49). The function might recognise most of the Christian days related to Easter.

Examples:
>> easter
Sunday 21 April 2019
>> easter(2024)
Sunday 31 March 2024
>> easter ash
Wednesday 06 March 2019
>> easter(2020:2022,'ascension')
Thursday 21 May 2020
Thursday 13 May 2021
Thursday 26 May 2022

See help for syntax, and details.

Cite As

François Beauducel (2019). easter (https://www.github.com/beaudu/easter), GitHub. Retrieved .

Comments and Ratings (0)

Updates

1.1.0.1

connect to github

1.1.0.0

adds main Christian dates as input argument.

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags