public static function addInterval($interval, $format = self::DEFAULT_TIME_FORMAT)
    {
        $date = Clock::now()->toDateTime();
        $date->add(new DateInterval($interval));
        return $date->format($format);
    }
public static function addInterval($interval, $format = self::DEFAULT_TIME_FORMAT)
    {
        $date = Clock::now()->toDateTime();
        $date->add(new DateInterval($interval));
        return $date->format($format);
    }
public static function addInterval ( $ interval , $ format = self :: DEFAULT_TIME_FORMAT ) { $ date = Clock :: now ( ) -> toDateTime ( ) ; $ date -> add ( new DateInterval ( $ interval ) ) ; return $ date -> format ( $ format ) ; }
Adds interval to current time and returns a formatted date.

@link http://php.net/manual/en/dateinterval.construct.php

@param string $interval
@param string $format
@return string
Adds interval to current time and returns a formatted date .