Enform Plus Reference Manual
Clauses
Enform Plus Reference Manual—422684-001
5-24
AS TIME Clause
AS TIME Clause
The AS TIME clause allows you to specify the display format for printing a time. The
syntax of the AS TIME clause is:
time-in-internal-format
is the name of a variable or field that contains a time in internal format.
*
specifies the default display format, which specifies the hour, minute, and second as
HP2:M2:S2 (see the following description of display-format).
display-format
is the format for printing the time. The display-format must be specified
within quotation marks (“ ”). The display-format can be specified by using
time keywords and other characters such as blanks, commas, hyphens, or slashes. In
addition, alphanumeric characters enclosed in apostrophes (‘ ’) can be embedded
within display-format. The time keywords are:
If you want Enform Plus to print the time, it must be in internal format. For information
on how to convert a time to internal format, see the TIMESTAMP-TIME Clause
on
page 5-68. The time can be a target-item within a LIST statement or any element
that can be modified by an AS TIME clause within a print list.
Default Time Display Format
The Enform Plus default time format, HP2:M2:S2, can handle most of the time
formatting required. Change the default format by redefining the @TIME-FORMAT
option variable described under Option Variable Clauses on page 5-48.
time-in-internal-format AS TIME { * }
{ display-format }
H Specifies an hour.
M Specifies a minute.
S Specifies a second.
P Expresses the hour as modulo 12 with AM or PM.
B Suppresses leading zeros.
n Is an integer digit specifying the number of digits (1 or 2) to be printed.