Menu Samaritan's Purse

EASTER_DAYS

Get number of days after March 21 on which Easter falls for a given year

SYNTAX

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

PARAMETERS

year

The year as a positive number. If omitted, defaults to the current year according to the local time.

method

Allows Easter dates to be calculated based on a specified 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 number of days after March 21st that the Easter Sunday is in the given year.

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

22

YEAR

6

METHOD | CAL_EASTER_DEFAULT

1582: 25
1583: 10
1752: 8
1753: 32

METHOD | CAL_EASTER_ROMAN

1582: 25
1583: 20
1752: 12
1753: 32

METHOD | CAL_EASTER_ALWAYS_GREGORIAN

1582: 28
1583: 20
1752: 12
1753: 32

METHOD | CAL_EASTER_ALWAYS_JULIAN

1582: 25
1583: 10
1752: 8
1753: 21

PHP