Name
getdate
Synopsis
array getdate([int timestamp])
Returns an associative array containing values for various components
for the given timestamp time and date. If
no timestamp is given, the current date
and time is used. The array contains the following keys and values:
|
|
Seconds |
|
|
Minutes |
|
|
Hours |
|
|
Day of the month |
|
|
Numeric day of the week (Sunday is “0”) |
|
|
Month |
|
|
Year |
|
|
Day of the year |
|
|
Name of the day of the week (“Sunday” through “Saturday”) |
|
|
Name of the month (“January” through “December”) |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access