<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.calendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'calendar.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.calendar.php',
    1 => 'Calendar',
  ),
  'prev' => 
  array (
    0 => 'calendar.installation.php',
    1 => '安装',
  ),
  'next' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar 函数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/calendar/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="calendar.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.cal-easter-default">
    <strong><code><a href="calendar.constants.php#constant.cal-easter-default">CAL_EASTER_DEFAULT</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.easter-days.php" class="function">easter_days()</a></span>：根据儒略历计算 1753 
     年之前的复活节，并根据公历计算之后的复活节。
    </span>
   </dd>
  
  
   <dt id="constant.cal-easter-roman">
    <strong><code><a href="calendar.constants.php#constant.cal-easter-roman">CAL_EASTER_ROMAN</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.easter-days.php" class="function">easter_days()</a></span>：根据儒略历计算 1583 
     年之前的复活节，并根据公历计算之后的复活节。
    </span>
   </dd>
  
  
   <dt id="constant.cal-easter-always-gregorian">
    <strong><code><a href="calendar.constants.php#constant.cal-easter-always-gregorian">CAL_EASTER_ALWAYS_GREGORIAN</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.easter-days.php" class="function">easter_days()</a></span>：根据公历计算复活节。
    </span>
   </dd>
  
  
   <dt id="constant.cal-easter-always-julian">
    <strong><code><a href="calendar.constants.php#constant.cal-easter-always-julian">CAL_EASTER_ALWAYS_JULIAN</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.easter-days.php" class="function">easter_days()</a></span>：根据儒略历计算复活节。
    </span>
   </dd>
  
  
   <dt id="constant.cal-gregorian">
    <strong><code><a href="calendar.constants.php#constant.cal-gregorian">CAL_GREGORIAN</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.cal-days-in-month.php" class="function">cal_days_in_month()</a></span>、<span class="function"><a href="function.cal-from-jd.php" class="function">cal_from_jd()</a></span>、<span class="function"><a href="function.cal-info.php" class="function">cal_info()</a></span> 和
     <span class="function"><a href="function.cal-to-jd.php" class="function">cal_to_jd()</a></span>：使用前公历。
    </span>
   </dd>
  
  
   <dt id="constant.cal-julian">
    <strong><code><a href="calendar.constants.php#constant.cal-julian">CAL_JULIAN</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.cal-days-in-month.php" class="function">cal_days_in_month()</a></span>、<span class="function"><a href="function.cal-from-jd.php" class="function">cal_from_jd()</a></span>、<span class="function"><a href="function.cal-info.php" class="function">cal_info()</a></span> 和
     <span class="function"><a href="function.cal-to-jd.php" class="function">cal_to_jd()</a></span>：使用儒略历。
    </span>
   </dd>
  
  
   <dt id="constant.cal-jewish">
    <strong><code><a href="calendar.constants.php#constant.cal-jewish">CAL_JEWISH</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.cal-days-in-month.php" class="function">cal_days_in_month()</a></span>、<span class="function"><a href="function.cal-from-jd.php" class="function">cal_from_jd()</a></span>、<span class="function"><a href="function.cal-info.php" class="function">cal_info()</a></span> 和
     <span class="function"><a href="function.cal-to-jd.php" class="function">cal_to_jd()</a></span>：使用犹太历。
    </span>
   </dd>
  
  
   <dt id="constant.cal-french">
    <strong><code><a href="calendar.constants.php#constant.cal-french">CAL_FRENCH</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.cal-days-in-month.php" class="function">cal_days_in_month()</a></span>、<span class="function"><a href="function.cal-from-jd.php" class="function">cal_from_jd()</a></span>、<span class="function"><a href="function.cal-info.php" class="function">cal_info()</a></span> 和
     <span class="function"><a href="function.cal-to-jd.php" class="function">cal_to_jd()</a></span>：使用法国共和历。
    </span>
   </dd>
  
  
   <dt id="constant.cal-num-cals">
    <strong><code><a href="calendar.constants.php#constant.cal-num-cals">CAL_NUM_CALS</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     可用历法的数量。
    </span>
   </dd>
  
  
   <dt id="constant.cal-jewish-add-alafim-geresh">
    <strong><code><a href="calendar.constants.php#constant.cal-jewish-add-alafim-geresh">CAL_JEWISH_ADD_ALAFIM_GERESH</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdtojewish.php" class="function">jdtojewish()</a></span>：在年份中添加 geresh 
     符号（类似单引号）作为千位分隔符。
    </span>
   </dd>
  
  
   <dt id="constant.cal-jewish-add-alafim">
    <strong><code><a href="calendar.constants.php#constant.cal-jewish-add-alafim">CAL_JEWISH_ADD_ALAFIM</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdtojewish.php" class="function">jdtojewish()</a></span>：在年份中添加单词 alafim
     作为千位分隔符。
    </span>
   </dd>
  
  
   <dt id="constant.cal-jewish-add-gereshayim">
    <strong><code><a href="calendar.constants.php#constant.cal-jewish-add-gereshayim">CAL_JEWISH_ADD_GERESHAYIM</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     For <span class="function"><a href="function.jdtojewish.php" 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><a href="calendar.constants.php#constant.cal-dow-dayno">CAL_DOW_DAYNO</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jddayofweek.php" class="function">jddayofweek()</a></span>：用 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 
     表示星期几，<code class="literal">0</code> 表示星期日，<code class="literal">6</code> 表示星期六。
    </span>
   </dd>
  
  
   <dt id="constant.cal-dow-short">
    <strong><code><a href="calendar.constants.php#constant.cal-dow-short">CAL_DOW_SHORT</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jddayofweek.php" class="function">jddayofweek()</a></span>：星期几的英文名称缩写。
    </span>
   </dd>
  
  
   <dt id="constant.cal-dow-long">
    <strong><code><a href="calendar.constants.php#constant.cal-dow-long">CAL_DOW_LONG</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jddayofweek.php" class="function">jddayofweek()</a></span>：星期几的英文名称。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-gregorian-short">
    <strong><code><a href="calendar.constants.php#constant.cal-month-gregorian-short">CAL_MONTH_GREGORIAN_SHORT</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：公历月份名称缩写。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-gregorian-long">
    <strong><code><a href="calendar.constants.php#constant.cal-month-gregorian-long">CAL_MONTH_GREGORIAN_LONG</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：公历月份名称。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-julian-short">
    <strong><code><a href="calendar.constants.php#constant.cal-month-julian-short">CAL_MONTH_JULIAN_SHORT</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：儒略历月份名称缩写。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-julian-long">
    <strong><code><a href="calendar.constants.php#constant.cal-month-julian-long">CAL_MONTH_JULIAN_LONG</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：儒略历月份名称。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-jewish">
    <strong><code><a href="calendar.constants.php#constant.cal-month-jewish">CAL_MONTH_JEWISH</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：犹太历月份名称。
    </span>
   </dd>
  
  
   <dt id="constant.cal-month-french">
    <strong><code><a href="calendar.constants.php#constant.cal-month-french">CAL_MONTH_FRENCH</a></code></strong> 
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="function"><a href="function.jdmonthname.php" class="function">jdmonthname()</a></span>：法国共和历月份名称。
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>