getTimezoneUtility

From AgileApps Support Wiki
Revision as of 01:31, 10 September 2013 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description
Retrieves a time zone, based on a provided id via the Java API
Syntax
TimeZoneBean tz = Functions.getTimezoneUtility(String timezoneId);
Where timezoneId is a Time Zone Code
Return
TimeZoneBean
Example
Retrieve the time zone for timezoneId = 80
Logger.info("Retrieve time zone 80", "TimeZones");
TimeZoneBean tz = Functions.getTimezoneUtility("80");
Logger.info("code: "+ tz.getId() + "; value: "+ tz.getJavaValue() 
    + "; user friendly value: "+ tz.getUserFriendlyValue(), "TimeZones");