public function Carbon::endOfWeek in Persian Date for Drupal 8 8.4
Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59
Return value
static
File
- src/
Library/ Carbon/ Carbon.php, line 3027
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function endOfWeek() {
while ($this->dayOfWeek !== static::$weekEndsAt) {
$this
->addDay();
}
return $this
->endOfDay();
}