getdate()
getdate - Get date/time information
Syntax
array getdate (
int $timestamp)
Arguments
- timestamp - The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. In other words, it defaults to the value of time().
Description
Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.
Version
PHP 4, 5
Return value
Returns an associative array of information related to the timestamp. Elements from the returned associative array are as follows: