← All docs

easter_date()

Returns the Unix timestamp of midnight on Easter Sunday of a year.

easter_date()

function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int

Returns the Unix timestamp of midnight on Easter Sunday of a year.

Parameters:

  • $year (?int), default null, optional
  • $mode (int), default CAL_EASTER_DEFAULT, optional

Returns: int

Availability

  • Compiled (AOT): supported through the Elephc compiler.
  • eval() (magician interpreter): supported through the procedural date/time alias dispatcher.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how easter_date is implemented in the compiler, see the internals page.