function DateTimePlus::render
Same name in other branches
- 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::render()
- 10 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::render()
- 11.x core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::render()
Renders the timezone name.
Return value
string
Overrides ToStringTrait::render
File
-
core/
lib/ Drupal/ Component/ Datetime/ DateTimePlus.php, line 331
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function render() {
return $this->format(static::FORMAT) . ' ' . $this->getTimeZone()
->getName();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.