AgileApps Support Wiki Pre Release

getTimezonesUtility

From AgileApps Support Wiki
Revision as of 22:28, 20 December 2010 by imported>Aeric (Text replace - 'getTimezonesUtility(' to 'Functions.getTimezonesUtility(')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Functions.getTimezonesUtility()
Description
Retrieves the list of time zones via the Java API
Syntax
MMap Functions.getTimezonesUtility()
Return
Map
Example
Retrieve a list of all timezones
Learn more: Time Zone Codes
<syntaxhighlight lang="java" enclose="div">

Functions.debug("Retrieve time zone list"); Map<String, TimeZoneBean> timezoneCollection = Functions.getTimezonesUtility() for(Map.Entry e : timezoneCollection.entrySet()) { TimeZoneBean tz = e.getValue(); Functions.debug("code: "+ tz.getId() + "; value: "+ tz.getJavaValue() + "; user friendly value: "+ tz.getUserFriendlyValue()); } </syntaxhighlight>