private function getSeconds(DateInterval $interval)
    {
        $date = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
        $date2 = $date->add($interval);
        return $date2->getTimestamp() - $date->getTimestamp();
    }
private function getSeconds(DateInterval $interval)
    {
        $date = new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
        $date2 = $date->add($interval);
        return $date2->getTimestamp() - $date->getTimestamp();
    }
private function getSeconds ( DateInterval $ interval ) { $ date = new \ DateTimeImmutable ( 'now' , new \ DateTimeZone ( 'UTC' ) ) ; $ date2 = $ date -> add ( $ interval ) ; return $ date2 -> getTimestamp ( ) - $ date -> getTimestamp ( ) ; }
Get amount of seconds in date interval

@param DateInterval $interval
@return int
@throws \Exception
Get amount of seconds in date interval