asDuration() public method (available since version 2.0.7)
Represents the value as duration in human readable format.
public string asDuration ( $value, $implodeString = ', ', $negativeSign = '-' )$value
DateInterval|string|integer
The value to be formatted. Acceptable formats: DateInterval object integer - number of seconds. For example: value 131 represents 2 minutes, 11 seconds
ISO8601 duration format. For example, all of these values represent 1 day, 2 hours, 30 minutes duration: