Calendar
PHP Manual

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

CAL_EASTER_DEFAULT (integer)
For easter_days(): calculate Easter for years before 1753 according to the Julian calendar, and for later years according to the Gregorian calendar.
CAL_EASTER_ROMAN (integer)
For easter_days(): calculate Easter for years before 1583 according to the Julian calendar, and for later years according to the Gregorian calendar.
CAL_EASTER_ALWAYS_GREGORIAN (integer)
For easter_days(): calculate Easter according to the proleptic Gregorian calendar.
CAL_EASTER_ALWAYS_JULIAN (integer)
For easter_days(): calculate Easter according to the Julian calendar.
CAL_GREGORIAN (integer)
For cal_days_in_month(), cal_from_jd(), cal_info() and cal_to_jd(): use the proleptic Gregorian calendar.
CAL_JULIAN (integer)
For cal_days_in_month(), cal_from_jd(), cal_info() and cal_to_jd(): use the Julian calendar.
CAL_JEWISH (integer)
For cal_days_in_month(), cal_from_jd(), cal_info() and cal_to_jd(): use the Jewish calendar.
CAL_FRENCH (integer)
For cal_days_in_month(), cal_from_jd(), cal_info() and cal_to_jd(): use the French Repuclican calendar.
CAL_NUM_CALS (integer)
The number of available calendars.
CAL_JEWISH_ADD_ALAFIM_GERESH (integer)
For jdtojewish(): adds a geresh symbol (which resembles a single-quote mark) as thousands separator to the year number.
CAL_JEWISH_ADD_ALAFIM (integer)
For jdtojewish(): adds the word alafim as thousands separator to the year number.
CAL_JEWISH_ADD_GERESHAYIM (integer)
For jdtojewish(): add a gershayim symbol (which resembles a double-quote mark) before the final letter of the day and year numbers.
CAL_DOW_DAYNO (integer)
For jddayofweek(): the day of the week as integer, where 0 means Sunday and 6 means Saturday.
CAL_DOW_SHORT (integer)
For jddayofweek(): the abbreviated English name of the day of the week.
CAL_DOW_LONG (integer)
For jddayofweek(): the English name of the day of the week.
CAL_MONTH_GREGORIAN_SHORT (integer)
For jdmonthname(): the abbreviated Gregorian month name.
CAL_MONTH_GREGORIAN_LONG (integer)
For jdmonthname(): the Gregorian month name.
CAL_MONTH_JULIAN_SHORT (integer)
For jdmonthname(): the abbreviated Julian month name.
CAL_MONTH_JULIAN_LONG (integer)
For jdmonthname(): the Julian month name.
CAL_MONTH_JEWISH (integer)
For jdmonthname(): the Jewish month name.
CAL_MONTH_FRENCH (integer)
For jdmonthname(): the French Republican month name.

Calendar
PHP Manual