public function subtract($date, $interval)
    {
        if (!$interval instanceof \DateInterval) {
            $interval = new \DateInterval($interval);
        }
        $result = clone $date;
        return $result->sub($interval);
    }
public function subtract($date, $interval)
    {
        if (!$interval instanceof \DateInterval) {
            $interval = new \DateInterval($interval);
        }
        $result = clone $date;
        return $result->sub($interval);
    }
public function subtract ( $ date , $ interval ) { if ( ! $ interval instanceof \ DateInterval ) { $ interval = new \ DateInterval ( $ interval ) ; } $ result = clone $ date ; return $ result -> sub ( $ interval ) ; }
Subtract an interval from a date and return a new DateTime object

@param \DateTime $date
@param string|\DateInterval $interval
@return \DateTime
Subtract an interval from a date and return a new DateTime object