ExpressiveDate::modifySeconds PHP Method

modifySeconds() protected method

Modify by an amount of seconds.
protected modifySeconds ( integer $amount, boolean $invert = false ) : ExpressiveDate
$amount integer
$invert boolean
return ExpressiveDate
    protected function modifySeconds($amount, $invert = false)
    {
        $interval = new DateInterval("PT{$amount}S");
        $this->modifyFromInterval($interval, $invert);
        return $this;
    }