DateTimePlus::render
public function DateTimePlus::render
public DateTimePlus::render()
Renders the timezone name.
Return value
string
Overrides ToStringTrait::render
File
- core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 295
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function render() { return $this->format(static::FORMAT) . ' ' . $this->getTimeZone()->getName(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Datetime!DateTimePlus.php/function/DateTimePlus::render/8.1.x