Menu Riverview Church

EASTER_DATE

Get Unix timestamp for midnight on Easter of a given year

SYNTAX

easter_date ([ int $year = date("Y") [, int $method = CAL_EASTER_DEFAULT ]] ) : int

PARAMETERS

year

The year as a number between 1970 an 2037. If omitted, defaults to the current year according to the local time.

method

Allows Easter dates to be calculated based on a spedified calendar.

NUMBER NAME DESCRIPTION
0 CAL_EASTER_DEFAULT Calculate Easter for years before 1753 according to the Julian calendar and for later years according to the Gregorian calendar.
1 CAL_EASTER_ROMAN Calculate Easter for years before 1583 according to the Julian calendar and for later years according to the Gregorian calendar.
2 CAL_EASTER_ALWAYS_GREGORIAN Calculate Easter according to the proleptic Gregorian calendar.
3 CAL_EASTER_ALWAYS_JULIAN Calculate Easter according to the Julian calendar.

RETURN

The easter date as a unix timestamp.

EXAMPLES

JESUS

"Don't be alarmed," he said. "You are looking for Jesus the Nazarene, who was crucified. He has risen! He is not here. See the place where they laid him. Mark 16:6

<br><br>Jesus, who lived a perfect life, died for our sins. He rose from the grave and offers us eternal life with Him in heaven. All we have to do is confess Jesus is Lord and believe God raised Him from the dead. Happy Easter!

VOID

1586674800
2020-04-12

YEAR

7542000
1970-03-29

METHOD | CAL_EASTER_DEFAULT

7542000
1970-03-29

METHOD | CAL_EASTER_ROMAN

7542000
1970-03-29

METHOD | CAL_EASTER_ALWAYS_GREGORIAN

7542000
1970-03-29

METHOD | CAL_EASTER_ALWAYS_JULIAN

8838000
1970-04-13

PHP