public function Carbon::addQuarters in Persian Date for Drupal 8 8.4
Add quarters to the instance. Positive $value travels forward while negative $value travels into the past.
Parameters
int $value:
Return value
static
2 calls to Carbon::addQuarters()
- Carbon::addQuarter in src/
Library/ Carbon/ Carbon.php - Add a quarter to the instance
- Carbon::subQuarters in src/
Library/ Carbon/ Carbon.php - Remove quarters from the instance
File
- src/
Library/ Carbon/ Carbon.php, line 2018
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function addQuarters($value) {
return $this
->addMonths(static::MONTHS_PER_QUARTER * $value);
}