You are here

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

Remove weeks to the instance

Parameters

int $value:

Return value

static

1 call to Carbon::subWeeks()
Carbon::subWeek in src/Library/Carbon/Carbon.php
Remove a week from the instance

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function subWeeks($value) {
  return $this
    ->addWeeks(-1 * $value);
}