Source of: /manual/en/intro.datetime.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.datetime.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'intro.datetime.php',
1 => 'Introduction',
),
'up' =>
array (
0 => 'book.datetime.php',
1 => 'Date and Time',
),
'prev' =>
array (
0 => 'book.datetime.php',
1 => 'Date/Time',
),
'next' =>
array (
0 => 'datetime.setup.php',
1 => 'Installing/Configuring',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="intro.datetime" class="preface">
<h1 class="title">Introduction</h1>
<p class="para">
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.
</p>
<p class="para">
Each component of date (e.g. year) is internally stored as 64-bit number so
all imaginable dates (including negative years) are supported.
</p>
<blockquote><p><b class="note">Note</b>:
<span class="simpara">
Please keep in mind that these functions are dependent on
the locale settings of your server. Make sure to take
daylight saving time (use e.g.
<i>$date = strtotime('+7 days', $date)</i> and not
<i>$date += 7*24*60*60</i>)
and leap years into consideration when working
with these functions.
</span>
</p></blockquote>
<blockquote><p><b class="note">Note</b>:
<span class="simpara">
The timezones referenced in this section can be found in the
<a href="timezones.php" class="xref">List of Supported Timezones</a>.
</span>
</p></blockquote>
</div><?php manual_footer(); ?>