I l@ve RuBoard Previous Section Next Section

easter_date

int easter_date([int year]) 

Gets the UNIX-style timestamp of Easter midnight for the given year.

Returns:

UNIX timestamp; FALSE if the year is before 1970 or after 2037

Description:

easter_date() calculates the UNIX-style timestamp of midnight on Easter for the given year. If no year argument is provided, the current year is assumed.

UNIX-style timestamps are valid only for years from 1970 to 2037. If the year argument specified is outside this range, the function returns FALSE.

UNIX timestamps can be used with a variety of functions, including date(), unixtojd(), and gmdate()—see the date and time functions for more information.

Version:

3.0.9+, 4+

See also:

To find the number of days after March 21 until Easter for a given year:

easter_days() 

Example:

Display the month and date for Easter, 2005
$date = easter_date (2005); 
// Format the timestamp as a Gregorian Calendar date and display it 
echo date ('M, d', $date); 
    I l@ve RuBoard Previous Section Next Section