cvs: phpdoc /en/reference/datetime/functions date-default-timezone-get.xml
| From: | Daniel P. Brown | Date: | Fri, 18 Jul 2008 00:46:21 +0000 |
| Subject: | cvs: phpdoc /en/reference/datetime/functions date-default-timezone-get.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1873@lists.php.net to get a copy of this message | ||
danbrown Fri Jul 18 00:46:21 2008 UTC
Modified files:
/phpdoc/en/reference/datetime/functions
date-default-timezone-get.xml
Log:
Rewrote the description section, correcting grammar, rewording the structure, and expanding a bit
on the actions.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml
diff -u phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml:1.4
phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml:1.5
--- phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml:1.4 Wed Jun 20 22:24:18
2007
+++ phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml Fri Jul 18 00:46:20 2008
@@ -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">