PHP date_interval_format() 函数
Definition and Usage
date_interval_format() function is an alias of DateInterval::format().
The DateInterval::format() function is used to format time intervals.
Syntax
DateInterval::format(format);
Parameter | Description |
---|---|
format |
Required. Specify the format. The format parameter string can use the following characters:
Note:Each format string must start with the '%' symbol! |
Technical Details
Return Value: | Return formatted time interval. |
---|---|
PHP Version: | 5.3+ |