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