You are here

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

Remove months with no overflow from the instance

Parameters

int $value:

Return value

static

1 call to Carbon::subMonthsNoOverflow()
Carbon::subMonthNoOverflow in src/Library/Carbon/Carbon.php
Remove a month with no overflow from the instance

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function subMonthsNoOverflow($value) {
  return $this
    ->addMonthsNoOverflow(-1 * $value);
}