PHP.nl

getdate

getdate

Get date/time information

array **getdate**  $timestamp

Returns an associative containing the date information of the , or the current local time if is omitted or null. array``timestamp``timestamp

Returns an associative of information related to the . Elements from the returned associative array are as follows: array``timestamp

Voorbeeld: example

<?php
$today = getdate();
print_r($today);
Array
(
    [seconds] => 40
    [minutes] => 58
    [hours] => 21
    [mday] => 17
    [wday] => 2
    [mon] => 6
    [year] => 2003
    [yday] => 167
    [weekday] => Tuesday
    [month] => June
    [0] => 1055901520
)

date``idate``localtime``time``setlocale