GetTimeZoneDisplay (open)
Get the display name of a timezone
Syntax
LOADLIB "wh::util/localization.whlib";
STRING FUNCTION GetTimeZoneDisplay(STRING timezone, BOOLEAN dst, STRING style, STRING locale)Parameters
STRING timezoneThe time zone to display
BOOLEAN dstIf the DST version of the name should be displayed
STRING styleThe style to show the name in (one of "long", "short", of "offset")
STRING localeThe language or locale to use (e.g. 'en', 'en-GB', 'nl' or 'zh-Hans-CN')
Return value
STRINGThe display name of the time zone, or an empty string on error (i.e. non-existing time zone, unknown style)