Return date/time information of the current local date/time:
<?php
print_r(getdate());
?>
Try it Yourself »
The getdate() function returns date/time information of a timestamp or the current local date/time.
getdate(
timestamp)
Parameter | Description |
---|---|
timestamp | Optional. Specifies an integer Unix timestamp. Default is the current local time (time()) |
Return Value: | Returns an associative array with information related to the timestamp:
|
---|---|
PHP Version: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!