<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'datetime.configuration.php',
    1 => 'Runtime Configuration',
    2 => 'Runtime Configuration',
  ),
  'up' => 
  array (
    0 => 'datetime.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'datetime.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'datetime.constants.php',
    1 => 'Predefined Constants',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Runtime Configuration</h2>
 <p class="simpara">
The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Date/Time Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>Name</th>
      <th>Default</th>
      <th>Changeable</th>
      <th>Changelog</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>Prior to PHP 8.0.0, the default was &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>Prior to PHP 8.0.0, the default was &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>From PHP 8.2, a warning is emitted when setting this to an invalid
      value or an empty string.</td>
     </tr>

    </tbody>
   
  </table>

  For further details and definitions of the
INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
 </p>

 <p class="para">Here&#039;s a short explanation of
the configuration directives.</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">
      The default latitude
      ranging from <code class="literal">0</code> at the equator,
      to <code class="literal">+90</code> northward, and <code class="literal">-90</code> southward.
     </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">
      The default longitude
      ranging from <code class="literal">0</code> at the prime meridian
      to <code class="literal">+180</code> eastward and <code class="literal">−180</code> westward.
     </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">
      The default sunrise zenith.
     </p>
     <p class="para">
      The default value is 90°50&#039;. The additional 50&#039; is due to two
      components: the Sun&#039;s radius, which is 16&#039;, and the atmospheric
      refraction, which is 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">
      The default sunset zenith.
     </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">
      The default timezone used by all date/time functions.
      The precedence order for which timezone is used if none
      is explicitly mentioned is described in the
      <span class="function"><a href="function.date-default-timezone-get.php" class="function">date_default_timezone_get()</a></span> page. See <a href="timezones.php" class="xref">List of Supported Timezones</a> for a list of supported timezones.
     </p>
    </dd>
   
  </dl>
 </p>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <span class="simpara">
   The first four configuration options are currently only used by
   <span class="function"><a href="function.date-sunrise.php" class="function">date_sunrise()</a></span> and <span class="function"><a href="function.date-sunset.php" class="function">date_sunset()</a></span>.
  </span>
 </p></blockquote>
</div><?php manual_footer($setup); ?>