easter_days

int easter_days([int year]) 

Gets the number of days after the vernal equinox on which Easter falls in the specified year.

Returns:

Number of days

Description:

easter_days() calculates the number of days after the vernal equinox (March 21) on which Easter falls. If no year argument is provided, the current year is assumed. easter_days() calculates this date as reckoned by the Vatican.

Note:

Wondering why the vernal equinox has anything to do with the celebration of Easter? Do a search on the web for the terms Easter and Nicae.

Version:

3.0.9+, 4+

See also:

To find the UNIX-style timestamp of Easter midnight for the given year:

easter_date() 

Example:

Find out when Easter falls for all years from 2038 to 2100
 <table cellpadding="2" ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.