<< duplication Basic functions elimination >>

Grocer >> Basic functions > easter_date

easter_date

Provides Easter month and day for a given year

CALLING SEQUENCE

[month, day]=easter_date(year)

PARAMETERS

Input

* year = an integer, the year where the Easter date should be provided

Output

* month = an integrer, the Easter month for the considered year

* day = an integrer, the Easter day in the month for the considered year

DESCRIPTION

Gives the Esater date for any year after 1583.

EXAMPLE

// get Easter date in year 2000
[m_2000,d_2000]=easter_date(2000)
// get Easter date in current year
d=getdate() 
[m_current,d_current=easter_date(d(1))

AUTHOR

Éric Dubois 2022

Report an issue
<< duplication Basic functions elimination >>