Документ взят из кэша поисковой машины. Адрес оригинального документа : http://old.master.cmc.msu.ru/php/function.getdate.html
Дата изменения: Sun Feb 3 22:36:40 2002
Дата индексирования: Tue Oct 2 01:22:09 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";