<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/datetime.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'datetime.configuration.php',
    1 => '実行時設定',
    2 => '実行時設定',
  ),
  'up' => 
  array (
    0 => 'datetime.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'datetime.installation.php',
    1 => 'インストール手順',
  ),
  'next' => 
  array (
    0 => 'datetime.constants.php',
    1 => '定義済み定数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/datetime/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="datetime.configuration" class="section">
 <h2 class="title">実行時設定</h2>
 <p class="simpara">
<var class="filename">php.ini</var> の設定により動作が変化します。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Date/Time 設定オプション</strong></caption>
   
    <thead>
     <tr>
      <th>名前</th>
      <th>デフォルト</th>
      <th>変更可能</th>
      <th>変更履歴</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="datetime.configuration.php#ini.date.default-latitude" class="link">date.default_latitude</a></td>
      <td>&quot;31.7667&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="datetime.configuration.php#ini.date.default-longitude" class="link">date.default_longitude</a></td>
      <td>&quot;35.2333&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="datetime.configuration.php#ini.date.sunrise-zenith" class="link">date.sunrise_zenith</a></td>
      <td>&quot;90.833333&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>PHP 8.0.0 より前のバージョンでは、デフォルト値は &quot;90.583333&quot; でした。</td>
     </tr>

     <tr>
      <td><a href="datetime.configuration.php#ini.date.sunset-zenith" class="link">date.sunset_zenith</a></td>
      <td>&quot;90.833333&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>PHP 8.0.0 より前のバージョンでは、デフォルト値は &quot;90.583333&quot; でした。</td>
     </tr>

     <tr>
      <td><a href="datetime.configuration.php#ini.date.timezone" class="link">date.timezone</a></td>
      <td>&quot;UTC&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>PHP 8.2 以降では、この値に無効な値や空文字列を設定すると、警告が発生します。</td>
     </tr>

    </tbody>
   
  </table>

  INI_* モードの詳細および定義については
<a href="configuration.changes.modes.php" class="xref">どこで設定を行うのか</a> を参照してください。
 </p>

 <p class="para">以下に設定ディレクティブに関する
簡単な説明を示します。</p>

 <p class="para">
  <dl>
   
    <dt id="ini.date.default-latitude">
     <code class="parameter">date.default_latitude</code>
     <span class="type"><a href="language.types.float.php" class="type float">float</a></span>
    </dt>
    <dd>
     <p class="para">
      デフォルトの緯度。
      赤道にあたる <code class="literal">0</code> から、
      北緯は <code class="literal">+90</code> まで、
      南緯は <code class="literal">-90</code> までの値をとります。
     </p>
    </dd>
   

   
    <dt id="ini.date.default-longitude">
     <code class="parameter">date.default_longitude</code>
     <span class="type"><a href="language.types.float.php" class="type float">float</a></span>
    </dt>
    <dd>
     <p class="para">
      デフォルトの経度。
      グリニッジ子午線にあたる <code class="literal">0</code> から、
      東経は <code class="literal">+180</code> まで、
      西経は <code class="literal">−180</code> までの値をとります。
     </p>
    </dd>
   

   
    <dt id="ini.date.sunrise-zenith">
     <code class="parameter">date.sunrise_zenith</code>
     <span class="type"><a href="language.types.float.php" class="type float">float</a></span>
    </dt>
    <dd>
     <p class="para">
      デフォルトの日出点
     </p>
     <p class="para">
      デフォルト値は 90°50&#039; です。
      50&#039; の値は、2つの要素からなります。
      ひとつは太陽の視半径 16&#039; です。
      もうひとつは大気差の値で、34&#039; です。
     </p>
    </dd>
   

   
    <dt id="ini.date.sunset-zenith">
     <code class="parameter">date.sunset_zenith</code>
     <span class="type"><a href="language.types.float.php" class="type float">float</a></span>
    </dt>
    <dd>
     <p class="para">
      デフォルトの日没点
     </p>
    </dd>
   

   
    <dt id="ini.date.timezone">
     <code class="parameter">date.timezone</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      全ての日付/時刻関数で使用されるデフォルトのタイムゾーン。
      明示的に指定しなかったときにどのタイムゾーンを利用するのかについての優先順位は
      <span class="function"><a href="function.date-default-timezone-get.php" class="function">date_default_timezone_get()</a></span>
      のページで解説されています。サポートしているタイムゾーンについては
      <a href="timezones.php" class="xref">サポートされるタイムゾーンのリスト</a> を参照ください。
     </p>
    </dd>
   
  </dl>
 </p>
 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <span class="simpara">
   最初の 4 つの設定オプションは現時点で
   <span class="function"><a href="function.date-sunrise.php" class="function">date_sunrise()</a></span> と <span class="function"><a href="function.date-sunset.php" class="function">date_sunset()</a></span>
   でのみ使用されます。
  </span>
 </p></blockquote>
</div><?php manual_footer($setup); ?>