You are here

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

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

Parameters

int $value:

Return value

static

2 calls to Carbon::addWeeks()
Carbon::addWeek in src/Library/Carbon/Carbon.php
Add a week to the instance
Carbon::subWeeks in src/Library/Carbon/Carbon.php
Remove weeks to the instance

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

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