1 date.class.inc | public BackdropDateTime::__toString() |
Returns the date object as a string.
Return value
string: The date object formatted as a string.
File
- core/
includes/ date.class.inc, line 46
Class
- BackdropDateTime
- Extends PHP DateTime class for use with Backdrop.
Code
public function __toString() {
return $this->format(DATE_FORMAT_DATETIME) . ' ' . $this->getTimeZone()->getName();
}