protected function secondsUntil($delay)
    {
        $delay = $this->parseDateInterval($delay);

        return $delay instanceof DateTimeInterface
                            ? max(0, $delay->getTimestamp() - $this->currentTime())
                            : (int) $delay;
    }
protected function secondsUntil($delay)
    {
        $delay = $this->parseDateInterval($delay);

        return $delay instanceof DateTimeInterface
                            ? max(0, $delay->getTimestamp() - $this->currentTime())
                            : (int) $delay;
    }
protected function secondsUntil ( $ delay ) { $ delay = $ this -> parseDateInterval ( $ delay ) ; return $ delay instanceof DateTimeInterface ? max ( 0 , $ delay -> getTimestamp ( ) - $ this -> currentTime ( ) ) : ( int ) $ delay ; }
Get the number of seconds until the given DateTime.

@param  \DateTimeInterface|\DateInterval|int  $delay
@return int
Get the number of seconds until the given DateTime .