PHP » PYTHON |
login |
register |
about
|
|
getdate(PHP 4, PHP 5) getdate — Get date/time information Description
array getdate
([ int $timestamp= time()
] )
Returns an associative array containing the date information of the timestamp , or the current local time if no timestamp is given. Parameters
Return ValuesReturns an associative array of information related to the timestamp . Elements from the returned associative array are as follows:
Examples
Example #1 getdate() example
<?phpThe above example will output something similar to:
Array
(
[seconds] => 40
[minutes] => 58
[hours] => 21
[mday] => 17
[wday] => 2
[mon] => 6
[year] => 2003
[yday] => 167
[weekday] => Tuesday
[month] => June
[0] => 1055901520
)
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|