Home > PHP > Function > Calendar > easter_date()

easter_date()

easter_date - Get Unix timestamp for midnight on Easter of a given year

Syntax

int easter_date (int $year)

Arguments

  • year - The year as a number between 1970 an 2037

Description

Returns the Unix timestamp corresponding to midnight on Easter of the given year.

Version

PHP 4, 5

Return value

The easter date as a unix timestamp.