<!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-gregorian"> <span class="term"> <strong><code>CAL_GREGORIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-julian"> <span class="term"> <strong><code>CAL_JULIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-jewish"> <span class="term"> <strong><code>CAL_JEWISH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-french"> <span class="term"> <strong><code>CAL_FRENCH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-num-cals"> <span class="term"> <strong><code>CAL_NUM_CALS</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-dow-dayno"> <span class="term"> <strong><code>CAL_DOW_DAYNO</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-dow-short"> <span class="term"> <strong><code>CAL_DOW_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-dow-long"> <span class="term"> <strong><code>CAL_DOW_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-gregorian-short"> <span class="term"> <strong><code>CAL_MONTH_GREGORIAN_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-gregorian-long"> <span class="term"> <strong><code>CAL_MONTH_GREGORIAN_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-julian-short"> <span class="term"> <strong><code>CAL_MONTH_JULIAN_SHORT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-julian-long"> <span class="term"> <strong><code>CAL_MONTH_JULIAN_LONG</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-jewish"> <span class="term"> <strong><code>CAL_MONTH_JEWISH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-month-french"> <span class="term"> <strong><code>CAL_MONTH_FRENCH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> </dl> <p class="para"> The following constants are available since PHP 4.3.0 : </p> <dl> <dt id="constant.cal-easter-default"> <span class="term"> <strong><code>CAL_EASTER_DEFAULT</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-easter-roman"> <span class="term"> <strong><code>CAL_EASTER_ROMAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-easter-always-gregorian"> <span class="term"> <strong><code>CAL_EASTER_ALWAYS_GREGORIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-easter-always-julian"> <span class="term"> <strong><code>CAL_EASTER_ALWAYS_JULIAN</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> </dl> <p class="para"> The following constants are available since PHP 5.0.0 : </p> <dl> <dt id="constant.cal-jewish-add-alafim-geresh"> <span class="term"> <strong><code>CAL_JEWISH_ADD_ALAFIM_GERESH</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-jewish-add-alafim"> <span class="term"> <strong><code>CAL_JEWISH_ADD_ALAFIM</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> <dt id="constant.cal-jewish-add-gereshayim"> <span class="term"> <strong><code>CAL_JEWISH_ADD_GERESHAYIM</code></strong> (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>) </span> <dd> <span class="simpara"> </span> </dd> </dt> </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>