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\Datetime

Code

public function render() {
  return $this->format(static::FORMAT) . ' ' . $this->getTimeZone()->getName();
}
doc_Drupal
2016-10-29 09:01:04
Comments
Leave a Comment

Please login to continue.