public function Carbon::setDateTime in Persian Date for Drupal 8 8.4
Set the date and time all together
Parameters
int $year:
int $month:
int $day:
int $hour:
int $minute:
int $second:
Return value
static
10 calls to Carbon::setDateTime()
- Carbon::endOfCentury in src/
Library/ Carbon/ Carbon.php - Resets the date to end of the century and time to 23:59:59
- Carbon::endOfDecade in src/
Library/ Carbon/ Carbon.php - Resets the date to end of the decade and time to 23:59:59
- Carbon::endOfMonth in src/
Library/ Carbon/ Carbon.php - Resets the date to end of the month and time to 23:59:59
- Carbon::endOfYear in src/
Library/ Carbon/ Carbon.php - Resets the date to end of the year and time to 23:59:59
- Carbon::startOfCentury in src/
Library/ Carbon/ Carbon.php - Resets the date to the first day of the century and the time to 00:00:00
File
- src/
Library/ Carbon/ Carbon.php, line 878
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function setDateTime($year, $month, $day, $hour, $minute, $second = 0) {
return $this
->setDate($year, $month, $day)
->setTime($hour, $minute, $second);
}