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:
Daniel P. Brown 2008-07-18 00:46:20 +00:00
parent 57ef009120
commit 7d550ae084

View file

@ -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">