Definition :
The easter_date() function is used to returns the Unix timestamp for midnight on Easter of a given year.
Tip: The date of Easter Day is defined as the Sunday after the first full moon which falls on or after the Spring Equinox (21st March).
easter_date(year);
Parameter | Description |
---|---|
year | Optional. Specifies a year between 1970 and 2037. Default is the current year, local time |
Example : following example print easter date for different years
Output :
1617474600
Apr-03-2021
Apr-06-1985
Mar-22-2008
Apr-19-2014