PHP getdate() Function
Definition and Usage
The getdate() function returns the date/time information of a timestamp or the current local date/time.
Syntax
getdate(timestamp);
Parameter | Description |
---|---|
timestamp | Optional. Specifies a Unix timestamp, an integer value. Defaults to the current local time (time()). |
Technical Details
Return value: |
Returns an associative array with information related to the timestamp:
|
---|---|
PHP Version: | 4+ |