public function Carbon::startOfDay in Persian Date for Drupal 8 8.4
Resets the time to 00:00:00
Return value
static
3 calls to Carbon::startOfDay()
- Carbon::firstOfMonth in src/
Library/ Carbon/ Carbon.php - Modify to the first occurrence of a given day of the week in the current month. If no dayOfWeek is provided, modify to the first day of the current month. Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY.
- Carbon::lastOfMonth in src/
Library/ Carbon/ Carbon.php - Modify to the last occurrence of a given day of the week in the current month. If no dayOfWeek is provided, modify to the last day of the current month. Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY.
- Carbon::startOfWeek in src/
Library/ Carbon/ Carbon.php - Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00
File
- src/
Library/ Carbon/ Carbon.php, line 2883
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function startOfDay() {
return $this
->setTime(0, 0, 0);
}