Custom Transport - Get Server Time

This is a custom transport that can be used to return the server time.

GetServerTimeTransport.jar

GetServerTime.xml

GetServerTime.nitro_s

Input Parameter

The Format of the Date/Time to be returned.  The following pattern letters can be used to define the format to return the server date/time:

LetterDate or Time ComponentPresentationExamples
GEra designatorTextAD
yYearYear199696
YWeek yearYear200909
MMonth in yearMonthJulyJul07
wWeek in yearNumber27
WWeek in monthNumber2
DDay in yearNumber189
dDay in monthNumber10
FDay of week in monthNumber2
EDay name in weekTextTuesdayTue
uDay number of week (1 = Monday, ..., 7 = Sunday)Number1
aAm/pm markerTextPM
HHour in day (0-23)Number0
kHour in day (1-24)Number24
KHour in am/pm (0-11)Number0
hHour in am/pm (1-12)Number12
mMinute in hourNumber30
sSecond in minuteNumber55
SMillisecondNumber978
zTime zoneGeneral time zonePacific Standard TimePSTGMT-08:00
ZTime zoneRFC 822 time zone-0800
XTime zoneISO 8601 time zone-08-0800-08:00

Output Parameter

Server Time - Returns the time in the format specified by the input parameter.  Default is HH:mm:ss.

Result - Returns 200 if service completes successfully


Installation instructions

1. Deploy the .jar file to the extensions directory (/opt/IBM/Forms/extensions or c:\IBM\Forms\extensions)

2. Deploy the .xml file to the ServiceCatalog/1 directory.

3. A restart is not required, in about 60 seconds the service should appear within FEB.

Note: To apply a custom format: