public function isDateWillComeIn($interval)
    {
        if (!($interval instanceof \DateInterval)) {
            $interval = new \DateInterval((string) $interval);
        }
        $now = new \DateTime('now');
        return 0 === $this->diff($now->add($interval))->invert;
    }
public function isDateWillComeIn($interval)
    {
        if (!($interval instanceof \DateInterval)) {
            $interval = new \DateInterval((string) $interval);
        }
        $now = new \DateTime('now');
        return 0 === $this->diff($now->add($interval))->invert;
    }
public function isDateWillComeIn ( $ interval ) { if ( ! ( $ interval instanceof \ DateInterval ) ) { $ interval = new \ DateInterval ( ( string ) $ interval ) ; } $ now = new \ DateTime ( 'now' ) ; return 0 === $ this -> diff ( $ now -> add ( $ interval ) ) -> invert ; }
Return TRUE if this date will come in a given interval

@param \DateInterval|string $interval DateInterval or string interval specification

@return bool

@link  http://php.net/DateInterval

@since 1.1
Return TRUE if this date will come in a given interval