getTimezonesUtility
From AgileApps Support Wiki
Revision as of 01:21, 10 September 2013 by imported>Aeric
- Functions.getTimezonesUtility()
- Description
- Retrieves the list of time zones via the Java API
- Syntax
Map<String, TimeZoneBean> m = Functions.getTimezonesUtility();
- Return
- Map<String, TimeZoneBean>
- 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(); Logger.info("code: "+ tz.getId() + "; value: "+ tz.getJavaValue() + "; user friendly value: "+ tz.getUserFriendlyValue(), "TimeZones");
} </syntaxhighlight>