public DateTimeInterface::setDateTime(DrupalDateTime $dateTime)
Sets the date time object.
Parameters
\Drupal\Core\Datetime\DrupalDateTime $dateTime: An instance of a date time object.
File
- core/lib/Drupal/Core/TypedData/Type/DateTimeInterface.php, line 28
Class
- DateTimeInterface
- Interface for dates, optionally including a time.
Namespace
Drupal\Core\TypedData\Type
Code
public function setDateTime(DrupalDateTime $dateTime);
Please login to continue.