AS TIME Clause
Clauses
058057 Tandem Computers Incorporated
5–25
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 AS TIME
{
}
*
display-format
time-in-internal-format
is the name of a variable or field which 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. Display-format must be specified within
quotation marks (“ ”). 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:
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
an integer digit specifying the number of digits (1 or 2) printed.
If you want ENFORM to print the time, it must be in internal format. For instructions
on how to convert a time to internal format, refer to the TIMESTAMP-TIME clause in
this section. 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
ENFORM’s default time format, “HP2:M2:S2”, might handle most of the time
formatting required. Change the default format by redefining the @TIME-FORMAT
option variable discussed in this section.
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...