easter_days
Returns the number of days between Easter and March 21 for the specified year.
easter_days()
returns the number of days between Easter and March 21 of the specified year.
Tip: The date of Easter is the first Sunday after the full moon every year (March 21).
Output the number of days between Easter and March 21 for different years:
<?php echo "Easter after March 21 this year" . easter_days ( ) . "Heaven.<br />" ; echo "Easter after March 21, 1949" . easter_days ( ) . "Heaven.<br />" ; echo "Easter after March 21, 1980" . easter_days ( ) . "Heaven.<br />" ; echo "Easter after March 21, 2016" . easter_days ( ) . "Heaven.<br />" ; ?>
Run the instance
easter_days ( year , method ) ;
parameter | describe |
---|---|
year | Optional. Specifies the year used to calculate the Easter date in numbers. If omitted, the default is to use the current year and local time. |
method |
Optional. Allows you to calculate Easter dates for other calendars. For example, if set to CAL_EASTER_ROMAN, the Gregorian calendar for the period 1582 - 1752 is used. |