You are here

public function Carbon::addSeconds in Persian Date for Drupal 8 8.4

Add seconds to the instance. Positive $value travels forward while negative $value travels into the past.

Parameters

int $value:

Return value

static

3 calls to Carbon::addSeconds()
Carbon::addSecond in src/Library/Carbon/Carbon.php
Add a second to the instance
Carbon::average in src/Library/Carbon/Carbon.php
Modify the current instance to the average of a given instance (default now) and the current instance.
Carbon::subSeconds in src/Library/Carbon/Carbon.php
Remove seconds from the instance

File

src/Library/Carbon/Carbon.php, line 2524

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function addSeconds($value) {
  return $this
    ->modify((int) $value . ' second');
}