2005-07-12 12:11:58 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-06-20 22:25:43 +00:00
|
|
|
<!-- $Revision: 1.4 $ -->
|
|
|
|
<refentry xml:id="function.date-default-timezone-get" xmlns="http://docbook.org/ns/docbook">
|
2005-07-12 12:11:58 +00:00
|
|
|
<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>
|
2005-07-29 18:16:29 +00:00
|
|
|
This functions returns the default timezone, using the following "guess"
|
|
|
|
order:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
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)
|
|
|
|
</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>
|
2005-09-02 14:39:57 +00:00
|
|
|
If none of the above options succeeds, return <literal>UTC</literal>
|
2005-07-29 18:16:29 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-09-02 14:39:57 +00:00
|
|
|
</para>
|
2005-07-12 12:11:58 +00:00
|
|
|
</refsect1>
|
2005-09-02 14:39:57 +00:00
|
|
|
|
2005-07-12 12:11:58 +00:00
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2005-07-29 18:16:29 +00:00
|
|
|
Returns a <type>string</type>.
|
2005-07-12 12:11:58 +00:00
|
|
|
</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
|
|
|
|
-->
|