You are here

public static function DatexFormatter::getTzString in Datex 7

Returns a valid timezone string from given timezone.

1 call to DatexFormatter::getTzString()
DatexFormatter::formatINTL in datex_api/datex_api_classes.inc
Formats a date according to format given.

File

datex_api/datex_api_classes.inc, line 482
API and helper functions used by other datex modules.

Class

DatexFormatter
Date tools for Jalali Dates.

Code

public static function getTzString($tz) {
  $tz = self::getTzObject($tz);
  return method_exists($tz, 'getName') ? $tz
    ->getName() : NULL;
}