function Timestamp::getDateTime
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/Plugin/DataType/Timestamp.php \Drupal\Core\TypedData\Plugin\DataType\Timestamp::getDateTime()
- 8.9.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Timestamp.php \Drupal\Core\TypedData\Plugin\DataType\Timestamp::getDateTime()
- 10 core/lib/Drupal/Core/TypedData/Plugin/DataType/Timestamp.php \Drupal\Core\TypedData\Plugin\DataType\Timestamp::getDateTime()
Overrides DateTimeInterface::getDateTime
File
-
core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ Timestamp.php, line 29
Class
- Timestamp
- The timestamp data type.
Namespace
Drupal\Core\TypedData\Plugin\DataTypeCode
public function getDateTime() {
if (isset($this->value)) {
return DrupalDateTime::createFromTimestamp($this->value);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.