<?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 => 'ru',
  ),
  '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' => 'ru',
    '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>Настройки конфигурации даты/времени</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; обусловлены двумя компонентами:
      радиусом Солнца, который составляет 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">
   Первые четыре опции настройки в настоящее время используются только в функциях
   <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); ?>