<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="calendar.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.calendar.html">Calendar Functions</a></div> <div class="up"><a href="book.calendar.html">Calendar</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="calendar.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> 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. </p> <dl> <dt id="constant.cal-easter-default"> <strong><code>CAL_EASTER_DEFAULT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.easter-days.html" class="function">easter_days()</a></span>: calculate Easter for years before 1753 according to the Julian calendar, and for later years according to the Gregorian calendar. </span> </dd> <dt id="constant.cal-easter-roman"> <strong><code>CAL_EASTER_ROMAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.easter-days.html" class="function">easter_days()</a></span>: calculate Easter for years before 1583 according to the Julian calendar, and for later years according to the Gregorian calendar. </span> </dd> <dt id="constant.cal-easter-always-gregorian"> <strong><code>CAL_EASTER_ALWAYS_GREGORIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.easter-days.html" class="function">easter_days()</a></span>: calculate Easter according to the proleptic Gregorian calendar. </span> </dd> <dt id="constant.cal-easter-always-julian"> <strong><code>CAL_EASTER_ALWAYS_JULIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.easter-days.html" class="function">easter_days()</a></span>: calculate Easter according to the Julian calendar. </span> </dd> <dt id="constant.cal-gregorian"> <strong><code>CAL_GREGORIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.cal-days-in-month.html" class="function">cal_days_in_month()</a></span>, <span class="function"><a href="function.cal-from-jd.html" class="function">cal_from_jd()</a></span>, <span class="function"><a href="function.cal-info.html" class="function">cal_info()</a></span> and <span class="function"><a href="function.cal-to-jd.html" class="function">cal_to_jd()</a></span>: use the proleptic Gregorian calendar. </span> </dd> <dt id="constant.cal-julian"> <strong><code>CAL_JULIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.cal-days-in-month.html" class="function">cal_days_in_month()</a></span>, <span class="function"><a href="function.cal-from-jd.html" class="function">cal_from_jd()</a></span>, <span class="function"><a href="function.cal-info.html" class="function">cal_info()</a></span> and <span class="function"><a href="function.cal-to-jd.html" class="function">cal_to_jd()</a></span>: use the Julian calendar. </span> </dd> <dt id="constant.cal-jewish"> <strong><code>CAL_JEWISH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.cal-days-in-month.html" class="function">cal_days_in_month()</a></span>, <span class="function"><a href="function.cal-from-jd.html" class="function">cal_from_jd()</a></span>, <span class="function"><a href="function.cal-info.html" class="function">cal_info()</a></span> and <span class="function"><a href="function.cal-to-jd.html" class="function">cal_to_jd()</a></span>: use the Jewish calendar. </span> </dd> <dt id="constant.cal-french"> <strong><code>CAL_FRENCH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.cal-days-in-month.html" class="function">cal_days_in_month()</a></span>, <span class="function"><a href="function.cal-from-jd.html" class="function">cal_from_jd()</a></span>, <span class="function"><a href="function.cal-info.html" class="function">cal_info()</a></span> and <span class="function"><a href="function.cal-to-jd.html" class="function">cal_to_jd()</a></span>: use the French Repuclican calendar. </span> </dd> <dt id="constant.cal-num-cals"> <strong><code>CAL_NUM_CALS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> The number of available calendars. </span> </dd> <dt id="constant.cal-jewish-add-alafim-geresh"> <strong><code>CAL_JEWISH_ADD_ALAFIM_GERESH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdtojewish.html" class="function">jdtojewish()</a></span>: adds a geresh symbol (which resembles a single-quote mark) as thousands separator to the year number. </span> </dd> <dt id="constant.cal-jewish-add-alafim"> <strong><code>CAL_JEWISH_ADD_ALAFIM</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdtojewish.html" class="function">jdtojewish()</a></span>: adds the word alafim as thousands separator to the year number. </span> </dd> <dt id="constant.cal-jewish-add-gereshayim"> <strong><code>CAL_JEWISH_ADD_GERESHAYIM</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdtojewish.html" class="function">jdtojewish()</a></span>: add a gershayim symbol (which resembles a double-quote mark) before the final letter of the day and year numbers. </span> </dd> <dt id="constant.cal-dow-dayno"> <strong><code>CAL_DOW_DAYNO</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jddayofweek.html" class="function">jddayofweek()</a></span>: the day of the week as <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>, where <em>0</em> means Sunday and <em>6</em> means Saturday. </span> </dd> <dt id="constant.cal-dow-short"> <strong><code>CAL_DOW_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jddayofweek.html" class="function">jddayofweek()</a></span>: the abbreviated English name of the day of the week. </span> </dd> <dt id="constant.cal-dow-long"> <strong><code>CAL_DOW_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jddayofweek.html" class="function">jddayofweek()</a></span>: the English name of the day of the week. </span> </dd> <dt id="constant.cal-month-gregorian-short"> <strong><code>CAL_MONTH_GREGORIAN_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the abbreviated Gregorian month name. </span> </dd> <dt id="constant.cal-month-gregorian-long"> <strong><code>CAL_MONTH_GREGORIAN_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the Gregorian month name. </span> </dd> <dt id="constant.cal-month-julian-short"> <strong><code>CAL_MONTH_JULIAN_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the abbreviated Julian month name. </span> </dd> <dt id="constant.cal-month-julian-long"> <strong><code>CAL_MONTH_JULIAN_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the Julian month name. </span> </dd> <dt id="constant.cal-month-jewish"> <strong><code>CAL_MONTH_JEWISH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the Jewish month name. </span> </dd> <dt id="constant.cal-month-french"> <strong><code>CAL_MONTH_FRENCH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </dt> <dd> <span class="simpara"> For <span class="function"><a href="function.jdmonthname.html" class="function">jdmonthname()</a></span>: the French Republican month name. </span> </dd> </dl> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="calendar.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="ref.calendar.html">Calendar Functions</a></div> <div class="up"><a href="book.calendar.html">Calendar</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>