<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.calendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.jddayofweek.php',
    1 => 'jddayofweek',
    2 => '返回星期几',
  ),
  'up' => 
  array (
    0 => 'ref.calendar.php',
    1 => 'Calendar 函数',
  ),
  'prev' => 
  array (
    0 => 'function.gregoriantojd.php',
    1 => 'gregoriantojd',
  ),
  'next' => 
  array (
    0 => 'function.jdmonthname.php',
    1 => 'jdmonthname',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/calendar/functions/jddayofweek.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.jddayofweek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">jddayofweek</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">jddayofweek</span> &mdash; <span class="dc-title">返回星期几</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.jddayofweek-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>jddayofweek</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$julian_day</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$mode</code><span class="initializer"> = <strong><code><a href="calendar.constants.php#constant.cal-dow-dayno">CAL_DOW_DAYNO</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>

  <p class="para rdfs-comment">
    返回星期几，根据模式不同返回 string 或 int。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.jddayofweek-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">julian_day</code></dt>
     <dd>
      <p class="para">
       int 类型的儒略日数
      </p>
     </dd>
    
    
     <dt><code class="parameter">mode</code></dt>
     <dd>
      <table class="doctable table">
       <caption><strong>历法星期模式</strong></caption>
       
        <thead>
         <tr>
          <th>模式</th>
          <th>含义</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>0 (默认)</td> 
          <td>
           返回 int 类型的星期几（0 = Sunday， 1 = Monday，等等）
          </td>
         </tr>

         <tr>
          <td>1</td> 
          <td>
           以英文返回公历形式的 string 类型的星期几
          </td>
         </tr>

         <tr>
          <td>2</td> 
          <td>
           以英文返回公历形式的 string 类型的星期几缩写
          </td>
         </tr>

        </tbody>
       
      </table>

     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.jddayofweek-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   int 或 string 类型的公历星期几。
  </p>
 </div>

</div><?php manual_footer($setup); ?>