2005-07-12 12:11:58 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2005-10-08 19:35:57 +00:00
|
|
|
<!-- $Revision: 1.3 $ -->
|
2005-07-12 12:11:58 +00:00
|
|
|
<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>
|
|
|
|
<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
|
2005-10-08 19:35:57 +00:00
|
|
|
the timezone isn't valid, and/or a <constant>E_STRICT</constant> message
|
|
|
|
if using the system settings or the <varname>TZ</varname> environment
|
|
|
|
variable.
|
2005-07-12 12:11:58 +00:00
|
|
|
</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
|
2005-10-08 19:35:57 +00:00
|
|
|
<literal>Europe/Lisbon</literal>. The list of valid identifiers is
|
|
|
|
available in the <xref linkend="timezones"/>.
|
2005-07-12 12:11:58 +00:00
|
|
|
</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
|
|
|
|
-->
|