英[deɪt] 美[det]

n.Date; date, day; era, year; (of date palm trees common in North Africa and West Asia) date palm

vt. Outdated; to make... appear older; to show the era (or age) of...; to identify the age of... Calculate the date from a certain time; record the date; note (or indicate) the date

Third person singular: dates Plural: dates Present participle: dating Past tense: dated Past participle: dated

php getdate() function syntax

Function:Return the date/time information of the current local date/time

Syntax:getdate(timestamp)

Parameters:

Parameters Description
timestamp Optional. Specifies Unix timestamp, integer value. Defaults to the current local time (time()).

Description:Returns an associative array with information related to the timestamp: [seconds] - seconds, [minutes] - minutes, [hours] ] - hour, [mday] - day of month, [wday] - day of week, [mon] - month, [year] - year, [yday] - day of year, [ weekday] - the name of the day of the week, [month] - the name of the month, [0] - the number of elapsed seconds since the Unix epoch.

php getdate() function example


Run instance»

Click the "Run instance" button to view the online instance

Output:

Array ( [seconds] => 6 [minutes] => 31 [hours] => 15 [mday] => 19 [wday] => 4 [mon] => 4 [year] => 2018 [yday] => 108 [weekday] => Thursday [month] => April [0] => 1524123066 )