public function Carbon::addMonthsWithOverflow in Persian Date for Drupal 8 8.4
Add months to the instance. Positive $value travels forward while negative $value travels into the past.
Parameters
int $value:
Return value
static
3 calls to Carbon::addMonthsWithOverflow()
- Carbon::addMonths in src/
Library/ Carbon/ Carbon.php - Add months to the instance. Positive $value travels forward while negative $value travels into the past.
- Carbon::addMonthWithOverflow in src/
Library/ Carbon/ Carbon.php - Add a month to the instance
- Carbon::subMonthsWithOverflow in src/
Library/ Carbon/ Carbon.php - Remove months from the instance
File
- src/
Library/ Carbon/ Carbon.php, line 2169
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function addMonthsWithOverflow($value) {
return $this
->modify((int) $value . ' month');
}