Helper/Data.php
public function getDateDifference($created)
    {
        $now = $this->datetime->gmtDate();

        return strtotime($now) - strtotime($created);
    }
public function getDateDifference($created)
    {
        $now = $this->datetime->gmtDate();

        return strtotime($now) - strtotime($created);
    }
public function getDateDifference ( $ created ) { $ now = $ this -> datetime -> gmtDate ( ) ; return strtotime ( $ now ) - strtotime ( $ created ) ; }
Get difference between dates

@param string $created
@return false|int
Get difference between dates