DateTimeInterface::setDateTime

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);
doc_Drupal
2016-10-29 09:00:59
Comments
Leave a Comment

Please login to continue.