You are here

public static function DatexObject::getTzString in Datex 7.2

Makes sure $tz is string, Not tz object.

1 call to DatexObject::getTzString()
DatexObject::createINTLFormatter in datex_api/datex_api.class.inc
Create an IntlDateFormatter fot this object.

File

datex_api/datex_api.class.inc, line 229
Provides an API to work with dates.

Class

DatexObject
Base class for localized DateTime.

Code

public static function getTzString($tz) {
  return $tz instanceof DateTimeZone ? $tz
    ->getName() : $tz;
}