public function Carbon::isWeekend in Persian Date for Drupal 8 8.4
Determines if the instance is a weekend day
Return value
bool
2 calls to Carbon::isWeekend()
- Carbon::isWeekday in src/
Library/ Carbon/ Carbon.php - Determines if the instance is a weekday
- Carbon::nextOrPreviousDay in src/
Library/ Carbon/ Carbon.php - Go forward or backward to the next week- or weekend-day.
File
- src/
Library/ Carbon/ Carbon.php, line 1676
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function isWeekend() {
return in_array($this->dayOfWeek, static::$weekendDays);
}