You are here

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

Remove days from the instance

Parameters

int $value:

Return value

static

1 call to Carbon::subDays()
Carbon::subDay in src/Library/Carbon/Carbon.php
Remove a day from the instance

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function subDays($value) {
  return $this
    ->addDays(-1 * $value);
}