You are here

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

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

Parameters

int $value:

Return value

static

2 calls to Carbon::addCenturies()
Carbon::addCentury in src/Library/Carbon/Carbon.php
Add a century to the instance
Carbon::subCenturies in src/Library/Carbon/Carbon.php
Remove centuries from the instance

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function addCenturies($value) {
  return $this
    ->addYears(static::YEARS_PER_CENTURY * $value);
}