AgileApps Support Wiki Pre Release

Difference between revisions of "GetTimezoneUtility"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 10: Line 10:
Functions.debug("Retrieve time zone 80");
Functions.debug("Retrieve time zone 80");
TimeZoneBean tz = Functions.getTimezoneUtility("80");
TimeZoneBean tz = Functions.getTimezoneUtility("80");
Functions.debug("code: "+ tz.getId() + "; value: "+ tz.getJavaValue()  
Logger.info("code: "+ tz.getId() + "; value: "+ tz.getJavaValue()  
     + "; user friendly value: "+ tz.getUserFriendlyValue());
     + "; user friendly value: "+ tz.getUserFriendlyValue(), "TimeZones");
</syntaxhighlight>
</syntaxhighlight>


<noinclude>[[Category:Utility]]</noinclude>
<noinclude>[[Category:Utility]]</noinclude>

Revision as of 01:20, 10 September 2013

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"); Logger.info("code: "+ tz.getId() + "; value: "+ tz.getJavaValue()

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

</syntaxhighlight>