public function CarbonInterval::weeksAndDays in Persian Date for Drupal 8 8.4
Allow setting of weeks and days to be cumulative.
Parameters
int $weeks Number of weeks to set:
int $days Number of days to set:
Return value
static
File
- src/
Library/ Carbon/ CarbonInterval.php, line 402
Class
- CarbonInterval
- A simple API extension for DateInterval. The implementation provides helpers to handle weeks but only days are saved. Weeks are calculated based on the total days of the current instance.
Namespace
Drupal\persian_date\Library\CarbonCode
public function weeksAndDays($weeks, $days) {
$this->dayz = $weeks * Carbon::DAYS_PER_WEEK + $days;
return $this;
}