nlopess Tue Jul 12 08:11:58 2005 EDT
Added files:
/phpdoc/en/reference/datetime/functions
date-default-timezone-get.xml
date-default-timezone-set.xml
Modified files:
/phpdoc/en/appendices ini.xml
/phpdoc/en/reference/datetime ini.xml
Log:
add the new tz_(g|s)et functions and correct the associated ini opt
# note to translators: dont translate these changes yet (and others to come),
because they arent stabilized in the sources (yet)
http://cvs.php.net/diff.php/phpdoc/en/appendices/ini.xml?r1=1.21&r2=1.22&ty=u
Index: phpdoc/en/appendices/ini.xml
diff -u phpdoc/en/appendices/ini.xml:1.21 phpdoc/en/appendices/ini.xml:1.22
--- phpdoc/en/appendices/ini.xml:1.21 Fri Jul 8 14:02:35 2005
+++ phpdoc/en/appendices/ini.xml Tue Jul 12 08:11:57 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.21 $ -->
+<!-- $Revision: 1.22 $ -->
<appendix id="ini">
<title>&php.ini; directives</title>
@@ -325,7 +325,7 @@
</row>
<row>
<entry><link linkend="ini.date.timezone">date.timezone</link></entry>
- <entry>"GMT"</entry>
+ <entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry>Available since PHP 5.1.0.</entry>
</row>
http://cvs.php.net/diff.php/phpdoc/en/reference/datetime/ini.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/datetime/ini.xml
diff -u phpdoc/en/reference/datetime/ini.xml:1.2
phpdoc/en/reference/datetime/ini.xml:1.3
--- phpdoc/en/reference/datetime/ini.xml:1.2 Wed Jun 22 17:01:41 2005
+++ phpdoc/en/reference/datetime/ini.xml Tue Jul 12 08:11:58 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<section id="datetime.configuration">
&reftitle.runtime;
&extension.runtime;
@@ -42,7 +42,7 @@
</row>
<row>
<entry>date.timezone</entry>
- <entry>"GMT"</entry>
+ <entry>""</entry>
<entry>PHP_INI_ALL</entry>
<entry>Available since PHP 5.1.0.</entry>
</row>
@@ -111,10 +111,10 @@
</term>
<listitem>
<para>
- The default timezone. This is used when the <envar>TZ</envar>
- environment variable is <emphasis role="bold">not</emphasis> set.
- Currently it is only used by the <function>strtotime</function>
- function.
+ The default timezone used by all date/time functions if the
+ <varname>TZ</varname> environment variable isn't set. The precedence
+ order is described in the <function>date_default_timezone_set</function>
+ page.
</para>
</listitem>
</varlistentry>
http://cvs.php.net/co.php/phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml?r=1.1&p=1
Index: phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml
+++ phpdoc/en/reference/datetime/functions/date-default-timezone-get.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.date-default-timezone-get">
<refnamediv>
<refname>date_default_timezone_get</refname>
<refpurpose>
Gets the default timezone used by all date/time functions in a script
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>date_default_timezone_get</methodname>
<void/>
</methodsynopsis>
<para>
This functions returns the default timezone previously set by
<function>date_default_timezone_set</function>.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns a <type>string</type> on success, or &false; if the default
timezone wasn't set yet.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>date_default_timezone_set</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/phpdoc/en/reference/datetime/functions/date-default-timezone-set.xml?r=1.1&p=1
Index: phpdoc/en/reference/datetime/functions/date-default-timezone-set.xml
+++ phpdoc/en/reference/datetime/functions/date-default-timezone-set.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.date-default-timezone-set">
<refnamediv>
<refname>date_default_timezone_set</refname>
<refpurpose>
Sets the default timezone used by all date/time functions in a script
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>date_default_timezone_set</methodname>
<methodparam><type>string</type><parameter>timezone_identifier</parameter></methodparam>
</methodsynopsis>
<para>
<function>date_default_timezone_set</function> sets the default timezone
used by all date/time functions.
</para>
<para>
The order that PHP tries to find the default timezone is the following:
<itemizedlist>
<listitem>
<para>
The timezone set using this function (if any)
</para>
</listitem>
<listitem>
<para>
The <varname>TZ</varname> environment variable (if set)
</para>
</listitem>
<listitem>
<para>
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)
</para>
</listitem>
<listitem>
<para>
If none of the above options succeeds, falback to <literal>UTC</literal>
</para>
</listitem>
</itemizedlist>
</para>
<note>
<para>
Since PHP 5.1.0 (when the date/time functions were rewritten), every call
to a date/time function will generate a <constant>E_NOTICE</constant> if
the timezone isn't valid.
</para>
</note>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>timezone_identifier</parameter></term>
<listitem>
<para>
The timezone identifier, like <literal>UTC</literal> or
<literal>Europe/Lisbon</literal>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
This function always returns &true; (even if the
<parameter>timezone_identifier</parameter> isn't valid).
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>date_default_timezone_get</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->