mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Rewrote the description section, correcting grammar, rewording the structure, and expanding a bit on the actions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@262908 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
57ef009120
commit
7d550ae084
1 changed files with 8 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<refentry xml:id="function.date-default-timezone-get" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>date_default_timezone_get</refname>
|
||||
|
@ -14,38 +14,33 @@
|
|||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This functions returns the default timezone, using the following "guess"
|
||||
order:
|
||||
In order of preference, this function returns the default timezone by:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
The timezone set using the
|
||||
Reading the timezone set using the
|
||||
<function>date_default_timezone_set</function> function (if any)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The <varname>TZ</varname> environment variable (if non empty)
|
||||
Reading the <varname>TZ</varname> environment variable (if non empty)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The <link linkend="ini.date.timezone">date.timezone</link> ini option
|
||||
Reading the value of the <link linkend="ini.date.timezone">date.timezone</link> ini option
|
||||
(if set)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
"magical" guess (if the operating system supports it)
|
||||
Querying the host operating system (if supported and allowed by the OS)
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
If none of the above options succeeds, return <literal>UTC</literal>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
If none of the above succeed, <methodname>date_default_timezone_get</method>
|
||||
will return a default timezone of <literal>UTC</literal>.
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
|
|
Loading…
Reference in a new issue