defaultTimeFormat (EGL system variable)

The strLib.defaultTimeFormat system variable specifies one of several possible patterns that EGL uses to convert a TIME type to text.

For more information on converting a TIME type to text, see Converting date/time types to text).

EGL uses the following process to determine the initial value of strLib.defaultTimeFormat:
  • In a Java environment, the defaultTimeFormat build descriptor option sets the vgj.default.timeFormat Java runtime property, which in turn sets strLib.defaultTimeFormat. If this fails to get a valid value, EGL tries the Java locale. If the Java locale fails, EGL uses "HH:mm:ss".
  • In a COBOL environment, the defaultTimeFormat build descriptor option sets strLib.defaultTimeFormat directly. If this fails to get a valid value, EGL uses "HH:mm:ss". For more information about COBOL generation, see Default formats in COBOL.
  • In Rich UI, EGL uses the defaultTimeFormat build descriptor option to set strLib.defaultTimeFormat, which you can update at run time.

You can change the initial value at any time. For more information on this process, see defaultTimeFormat (build descriptor option).

Calling sysLib.setLocale() causes EGL to reinitialize strLib.defaultDateFormat and strLib.defaultTimeFormat.

For details on the characteristics of a time pattern, see Date/time masks and format specifiers.

strLib.defaultTimeFormat has the following characteristics:
Primitive type
STRING
Data length
Varies
Value saved across segments
Yes