Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/function.getdate.html
Дата изменения: Sun Feb 3 22:36:40 2002
Дата индексирования: Mon Oct 1 21:14:34 2012
Кодировка:
getdate

getdate

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

getdate -- Get date/time information

Description

array getdate ( [int timestamp])

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given, as the following array elements:

Example 1. getdate() example

$today = getdate(); 
$month = $today['month']; 
$mday = $today['mday']; 
$year = $today['year']; 
echo "$month $mday, $year";