Swat/SwatDate.php
public function addSeconds($seconds)
    {
        $seconds = (float) $seconds;
        $interval = new DateInterval('PT' . abs($seconds) . 'S');

        if ($seconds < 0) {
            $interval->invert = 1;
        }

        return $this->add($interval);
    }
public function addSeconds($seconds)
    {
        $seconds = (float) $seconds;
        $interval = new DateInterval('PT' . abs($seconds) . 'S');

        if ($seconds < 0) {
            $interval->invert = 1;
        }

        return $this->add($interval);
    }
public function addSeconds ( $ seconds ) { $ seconds = ( float ) $ seconds ; $ interval = new DateInterval ( 'PT' . abs ( $ seconds ) . 'S' ) ; if ( $ seconds < 0 ) { $ interval -> invert = 1 ; } return $ this -> add ( $ interval ) ; }
Adds the specified number of seconds to this date

@param float $seconds the number of seconds to add.

@return this object on success or false on failure.
Adds the specified number of seconds to this date