public function diff($from, $to = null)
    {
        $from = $this->getDatetimeObject($from);
        $to = $this->getDatetimeObject($to);

        return $this->formatter->formatDiff($from, $to);
    }
public function diff($from, $to = null)
    {
        $from = $this->getDatetimeObject($from);
        $to = $this->getDatetimeObject($to);

        return $this->formatter->formatDiff($from, $to);
    }
public function diff ( $ from , $ to = null ) { $ from = $ this -> getDatetimeObject ( $ from ) ; $ to = $ this -> getDatetimeObject ( $ to ) ; return $ this -> formatter -> formatDiff ( $ from , $ to ) ; }
Returns a single number of years, months, days, hours, minutes or
seconds between the specified date times.

@param  mixed $since The datetime for which the diff will be calculated
@param  mixed $since The datetime from which the diff will be calculated

@return string
Returns a single number of years months days hours minutes or seconds between the specified date times .