Configuring the TIBCO Openspace Date Time Format

Date and time stamps are often used in Openspace. For example, the gadget status bar sometimes shows a timestamp and you can specify a start date and end date in the Process Instances Measures gadget.

There are two files where the date and time format can be configured for Openspace.
  • TranslatorMessages_ll_CC.properties file. The date and time for the majority of the gadgets in Openspace is configured using this file.
  • CommonMessages_ll_CC.properties file. Currently, this file is used by the Data Views gadget only.
where:
These files are located in the TIBCO ActiveMatrix BPM configuration directory.
  • For example, the CommonMessages_ll_CC.properties file is available in C:\Program Data\amx-bpm\tibco\data\tibcohost\Admin-AMX BPM-AMX BPM Server\data_3.2.x\host\plugins\com.tibco.os.dataview_1.0.0.017\resources\dataview\locale.
  • For example, the TranslatorMessages_ll_CC.properties file is available C:\ProgramData\amx-bpm\tibco\data\tibcohost\Admin-AMX BPM-AMX BPM Server\data_3.2.x\host\plugins\com.tibco.openspace.login_1.7.0.036\resources\locale.

See "Openspace Configuration Overview" in the TIBCO Openspace Customization Guide for information about the location of these files.

Note: TIBCO recommends that you take a back-up of these files before you amend them.

Both the files contain the core messages that are used by most of the gadgets across Openspace. You must configure both a TranslatorMessages_ll_CC.properties file and a CommonMessages_ll_CC.properties file for each language you want Openspace to support.

The format of both files is the same. The patterns making up the various dateTimePattern properties are made up of meta characters as defined in Google Web Toolkit. The table below shows the meta characters you can use.

Symbol Meaning Presentation Example
G era designator Text AD
y year Number 1996
M month in year Text or Number July (or) 07
d day in month Number 10
h hour in am/pm (1-12) Number 12
H hour in day (0-23) Number 0
m minute in hour Number 30
s second in minute Number 55
S fractional second Number 978
E day of week Text Tuesday
a am/pm marker Text PM
k hour in day (1-24) Number 24
K hour in am/pm (0-11) Number 0
z time zone Text Pacific Standard Time
Z time zone (RFC 822) Number -0800
v time zone (generic) Text Pacific Time
escape for text Delimiter ’Date=’
" single quote Literal ’o’ ’clock’

The following table shows some example patterns.

Example Formatted Text
"yyyy.MM.dd G 'at' HH:mm:ss vvvv" 1996.07.10 AD at 15:08:56 Pacific Time
"EEE, MMM d, ''yy" Wed, July 10, '96
"h:mm a" 12:08 PM
"hh 'o''clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time
"K:mm a, vvv" 0:00 PM, PT
"yyyyy.MMMMM.dd GGG hh:mm aaa" 01996.July.10 AD 12:08 PM

See http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/DateTimeFormat.html for more information.

If a dateTimePattern1 property is not defined in the locale specific TranslatorMessages_ll_CC.properties file then the property value falls back to the property defined in the TranslatorMessages.properties file.

The common=filename property in the data views config.properties file configures the Data Views gadget to use the date time patterns that are available in the CommonMessages_ll_CC.properties file. For example, if your filename is exampleMessages_11_CC.properties then the common property must be common=example.

Tip: The Logger gadget enables you to quickly identify any words that are not translated in a locale pack. Specify the level of logging in the Logger gadget at INFO level, and an error displays if there are any words that are not translated. Words that are not translated default to American English. See Openspace User's Guide for more information.