DateInterval::format

DateInterval::format

(PHP 5 >= 5.3.0, PHP 7)

DateInterval::formatFormats the interval

Description

public string DateInterval::format ( string $format )

Formats the interval.

Parameters

format
The following characters are recognized in the format parameter string. Each format character must be prefixed by a percent sign (%).
登录查看完整内容