Definition
The getdate() function returns date/time information of the timestamp or the current local date/time.
Syntax
getdate(timestamp)
Parameters
| Parameter | Description |
|---|---|
timestamp |
Optional. Specifies an integer Unix timestamp. Default is the current local time (time()). |
Example
<?php
print_r(getdate());