2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-12-10 17:06:11 +00:00
|
|
|
<!-- $Revision: 1.16 $ -->
|
2005-09-04 11:49:43 +00:00
|
|
|
<!-- Purpose: calendar -->
|
2005-09-04 19:39:32 +00:00
|
|
|
<!-- Membership: core -->
|
2005-09-04 11:49:43 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.datetime" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
2004-02-24 08:46:39 +00:00
|
|
|
<title>Date and Time Functions</title>
|
2002-09-15 04:12:22 +00:00
|
|
|
<titleabbrev>Date/Time</titleabbrev>
|
2002-04-26 10:42:30 +00:00
|
|
|
<partintro>
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="datetime.intro">
|
2002-04-26 10:42:30 +00:00
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
2002-09-15 04:12:22 +00:00
|
|
|
These functions allow you to get the date and time from the server
|
|
|
|
where your PHP scripts are running. You can use these functions to format the
|
|
|
|
date and time in many different ways.
|
2002-04-26 10:42:30 +00:00
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<simpara>
|
2002-09-15 04:12:22 +00:00
|
|
|
Please keep in mind that these functions are dependent on
|
|
|
|
the locale settings of your server. Make sure to take
|
2004-09-17 12:24:34 +00:00
|
|
|
daylight saving time (use e.g.
|
|
|
|
<literal>$date = strtotime('+7 days', $date)</literal> and not
|
|
|
|
<literal>$date += 7*24*60*60</literal>)
|
|
|
|
and leap years into consideration when working
|
2002-09-15 04:12:22 +00:00
|
|
|
with these functions.
|
2002-04-26 10:42:30 +00:00
|
|
|
</simpara>
|
|
|
|
</note>
|
2006-01-04 22:03:40 +00:00
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
The timezones referenced in this section can be found in the
|
|
|
|
<xref linkend="timezones"/>.
|
|
|
|
</simpara>
|
|
|
|
</note>
|
2002-04-26 10:42:30 +00:00
|
|
|
|
|
|
|
</section>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="datetime.required">
|
2002-04-26 10:42:30 +00:00
|
|
|
&reftitle.required;
|
|
|
|
&no.requirement;
|
|
|
|
</section>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="datetime.installation">
|
2002-04-26 10:42:30 +00:00
|
|
|
&reftitle.install;
|
|
|
|
&no.install;
|
2006-09-08 12:06:18 +00:00
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
The latest version of the timezone database can be installed via PECL's
|
2007-06-20 22:25:43 +00:00
|
|
|
<link xlink:href="&url.pecl.package.get;timezonedb">timezonedb</link>. For
|
2006-09-08 12:06:18 +00:00
|
|
|
Windows users, a pre-compiled DLL can be downloaded from the PECL4Win
|
2007-06-20 22:25:43 +00:00
|
|
|
site: <link xlink:href="&url.pecl.timezonedb.dll;">php_timezonedb.dll</link>.
|
2006-09-08 12:06:18 +00:00
|
|
|
</simpara>
|
|
|
|
</note>
|
2002-04-26 10:42:30 +00:00
|
|
|
</section>
|
|
|
|
|
2005-06-22 19:33:34 +00:00
|
|
|
&reference.datetime.ini;
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="datetime.resources">
|
2002-04-26 10:42:30 +00:00
|
|
|
&reftitle.resources;
|
|
|
|
&no.resource;
|
|
|
|
</section>
|
|
|
|
|
2005-07-30 18:14:12 +00:00
|
|
|
&reference.datetime.constants;
|
2002-04-26 10:42:30 +00:00
|
|
|
|
|
|
|
</partintro>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
2007-12-10 17:06:11 +00:00
|
|
|
&reference.datetime.entities.functions;
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- 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
|
|
|
|
-->
|
|
|
|
|