DateInterval
PHP 手册

DateInterval::format

(PHP 5 >= 5.3.0)

DateInterval::formatFormats the interval

说明

public string DateInterval::format ( void )

Formats the interval.

参数

This function has no parameters.

返回值

Returns the formatted interval.


DateInterval
PHP 手册