timeFormat

The timeFormat property tells EGL how to parse or format a TIME variable.

The following values are valid:
"pattern"
The pattern consists of characters that describe a time format; see Date/time masks and format specifiers.
defaultTimeFormat
The format you specified in the defaultTimeFormat build descriptor option. For more information, refer to the EGL Generation Guide. If you did not specify this build descriptor option, EGL uses either the local Java™ default time format, or the string "hh:mm AM".
eurTimeFormat
The pattern "HH.mm.ss", which is the IBM® European standard time format.
isoTimeFormat
The pattern "HH.mm.ss", which is the time format specified by the International Standards Organization (ISO).
jisTimeFormat
The pattern "HH:mm:ss", which is the Japanese Industrial Standard time format.
usaTimeFormat
The pattern "hh:mm AM", which is the IBM USA standard time format.

I/O considerations for times

Data entered into a variable field is checked to ensure that the time was entered in the format specified. The user does not need to enter the leading zeros for hours, minutes, and seconds, but can specify, for example, 8:15 instead of 08:15. However, the user who omits the separator characters must include all leading zeros.

Compatibility

Table 1. Support for timeFormat property
Data item JSF handler VGUI record Console UI Text Form Java Text Form COBOL Print Form Java Print Form COBOL
Yes Yes* Yes No Yes* No Yes No

* The following additional compatibility considerations apply:

Table 2. Compatibility considerations for timeFormat
Platform Issue
JSF handler
  • The field length must be sufficient for the time pattern you specify, but can be longer.
  • In the case of a numeric field, the separator characters are excluded from the length calculation.
Text UI The field length must match the length of the time pattern you specify.

Feedback