The strLib.defaultTimestampFormat system
variable specifies one of several patterns that EGL uses to create
the string that the strLib.formatTimestamp() function
returns.
To determine the initial value
of strLib.defaultTimestampFormat,
set the defaultTimestampFormat build descriptor
option. For more information on this process, see defaultTimeStampFormat (build descriptor option).
You can change the initial value at any time. If you have not established
an initial value, EGL uses an empty string.
EGL uses the following
process to determine the initial value of
strLib.defaultTimestampFormat:
- In a Java™ environment, the defaultTimestampFormat build
descriptor option sets the vgj.default.timestampFormat Java runtime property, which in turn sets strLib.defaultTimestampFormat.
If this fails to get a valid value, EGL uses "" (an empty string).
- In a COBOL environment, the defaultTimestampFormat build
descriptor option sets strLib.defaultTimestampFormat directly.
If this fails to get a valid value, EGL uses "yyyy-MM-dd HH:mm:ss.SSSSSS".
For more information about COBOL generation, see Default formats in COBOL.
- In Rich UI,
EGL uses the defaultTimestampFormat build
descriptor option to set strLib.defaultTimestampFormat,
which you can update at run time.
For details on the
characteristics of a timestamp 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