datetime.configuration.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 185 行
HTML
185 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Runtime Configuration</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="datetime.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="datetime.resources.html">Resource Types</a></div> <div class="up"><a href="datetime.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><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 border="5"> <caption><b>Date/Time Configuration Options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">date.default_latitude</td> <td colspan="1" rowspan="1" align="left">"31.7667"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">date.default_longitude</td> <td colspan="1" rowspan="1" align="left">"35.2333"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">date.sunrise_zenith</td> <td colspan="1" rowspan="1" align="left">"90.583333"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">date.sunset_zenith</td> <td colspan="1" rowspan="1" align="left">"90.583333"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.0.0.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">date.timezone</td> <td colspan="1" rowspan="1" align="left">""</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL</td> <td colspan="1" rowspan="1" align="left">Available since PHP 5.1.0.</td> </tr> </tbody> </colgroup> </table> For further details and definitions of the PHP_INI_* constants, see the <a href="ini.html" class="xref">php.ini directives</a>. </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.date.default-latitude"> <span class="term"> <i><tt class="parameter">date.default_latitude</tt></i> <a href="language.types.float.html" class="type float">float</a> </span> <dd> <p class="para"> The default latitude. </p> </dd> </dt> <dt id="ini.date.default-longitude"> <span class="term"> <i><tt class="parameter">date.default_longitude</tt></i> <a href="language.types.float.html" class="type float">float</a> </span> <dd> <p class="para"> The default longitude. </p> </dd> </dt> <dt id="ini.date.sunrise-zenith"> <span class="term"> <i><tt class="parameter">date.sunrise_zenith</tt></i> <a href="language.types.float.html" class="type float">float</a> </span> <dd> <p class="para"> The default sunrise zenith. </p> </dd> </dt> <dt id="ini.date.sunset-zenith"> <span class="term"> <i><tt class="parameter">date.sunset_zenith</tt></i> <a href="language.types.float.html" class="type float">float</a> </span> <dd> <p class="para"> The default sunset zenith. </p> </dd> </dt> <dt id="ini.date.timezone"> <span class="term"> <i><tt class="parameter">date.timezone</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> The default timezone used by all date/time functions if the <var class="varname">TZ</var> environment variable isn't set. The precedence order is described in the <a href="function.date-default-timezone-get.html" class="function">date_default_timezone_get()</a> page. See <a href="timezones.html" class="xref">List of Supported Timezones</a> for a list of supported timezones. </p> </dd> </dt> </dl> </p> <blockquote><p><b class="note">Note</b>: <span class="simpara"> The first four configuration options are currently only used by <a href="function.date-sunrise.html" class="function">date_sunrise()</a> and <a href="function.date-sunset.html" class="function">date_sunset()</a>. </span> </p></blockquote></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="datetime.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="datetime.resources.html">Resource Types</a></div> <div class="up"><a href="datetime.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?