public function Carbon::startOfWeek in Persian Date for Drupal 8 8.4
Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
Return value
static
File
- src/
Library/ Carbon/ Carbon.php, line 3013
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function startOfWeek() {
while ($this->dayOfWeek !== static::$weekStartsAt) {
$this
->subDay();
}
return $this
->startOfDay();
}