PHP idate() 函数
Definition and Usage
The idate() function formats the local time/date as an integer.
Note:The idate() function only accepts one character as format Parameter!
Syntax
idate(format,timestamp);
Parameters | Description |
---|---|
format |
Required. Specifies how to return the result:
|
timestamp | Optional. Specifies the Unix timestamp representing the date/time to be formatted. The default is the current local time (time()). |
Technical Details
Return value: | Returns according to the specified format Use the given timestamp Formatted integer. |
---|---|
PHP Version: | 5+ |
Update Log: | PHP 5.1.0: Added E_STRICT and E_NOTICE timezone errors. |