As Time Clause; Default Display Format - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

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
time-in-internal-format
*
display-format
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
ENFORM's default time format, "HP2:M2:S2", might handle most of the time
Format
formatting required. Change the default format by redefining the @TIME-FORMAT
option variable discussed in this section.
058057 Tandem Computers Incorporated
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).
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:
specifies an hour.
H
specifies a minute.
M
specifies a second.
S
expresses the hour as modulo 12 with AM or PM.
P
suppresses leading zeros.
B
an integer digit specifying the number of digits (1 or 2) printed.
n
*
{
display-format
Clauses
AS TIME Clause
}
5–25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents