Difference between revisions of "GetTimezoneUtility"
From AgileApps Support Wiki
imported>Aeric m (Text replace - 'getTimezoneUtility(' to 'Functions.getTimezoneUtility(') |
imported>Aeric |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:getTimezoneUtility}} | {{DISPLAYTITLE:getTimezoneUtility}} | ||
:<tt>Functions.getTimezoneUtility(String timezoneId)</tt> | :<tt>TimeZoneBean tb = Functions.getTimezoneUtility(String timezoneId);</tt> | ||
;Description:Retrieves a time zone, based on a provided id <noinclude>via the [[Java API]]</noinclude> | ;Description:Retrieves a time zone, based on a provided id <noinclude>via the [[Java API]]</noinclude> | ||
;Syntax:<pre>Map Functions.getTimezoneUtility(String timezoneId)</pre> | ;Syntax:<pre>Map Functions.getTimezoneUtility(String timezoneId)</pre> | ||
Line 9: | Line 9: | ||
<syntaxhighlight lang="java" enclose="div"> | <syntaxhighlight lang="java" enclose="div"> | ||
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() + "; user friendly value: "+ tz.getUserFriendlyValue()); | Functions.debug("code: "+ tz.getId() + "; value: "+ tz.getJavaValue() | ||
+ "; user friendly value: "+ tz.getUserFriendlyValue()); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<noinclude>[[Category:Utility]]</noinclude> | <noinclude>[[Category:Utility]]</noinclude> |
Revision as of 23:00, 23 July 2013
- TimeZoneBean tb = Functions.getTimezoneUtility(String timezoneId);
- Description
- Retrieves a time zone, based on a provided id via the Java API
- Syntax
Map 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>