Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Business calendar : Business calendar tags : Time zone and locale tags
 

Time zone and locale tags

The Business Calendar feature in Business Process Server supports multiple calendars in different time zones with different locales. The tag <locale> has attributes country and language. For the tag <timezone> you need to define the attribute zoneid.

Example

An example of the < locale> and <timezone> tags are shown below:
<calendar name="sbmcal">
<locale country= language=/> //language is optional
<timezone zoneid=/>
</calendar>
Both the tags <locale> and <timezone> are optional. When not specified, the default values are used.
When a specific locale and time zone is specified, the Business Calendar invokes the java.util.Calendar constructor that takes both locale and timezone objects.
Based on the locale or time zone specified, the Calendar object outputs different values. For example, the method calobj.getFirstDayOfWeek() returns the first day of the week specific to a country, which is Sunday in USA, but Monday in France.
When you specify a time zone, the Calendar object takes care of the time offset automatically.
The following example shows how the various attributes are specified.
<locale country="US"/>
<locale country="US" language="en"/>
<timezone zoneid= "America/Los_Angeles"/>