AgileApps Support Wiki Pre Release

getTimezoneUtility

From AgileApps Support Wiki
Revision as of 23:01, 23 July 2013 by imported>Aeric
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

<syntaxhighlight lang="java" enclose="div"> Functions.debug("Retrieve time zone 80"); TimeZoneBean tz = Functions.getTimezoneUtility("80"); Functions.debug("code: "+ tz.getId() + "; value: "+ tz.getJavaValue()

   + "; user friendly value: "+ tz.getUserFriendlyValue());

</syntaxhighlight>