HP Integrity NonStop H-Series User Manual
Page 254
![background image](/manuals/396805/254/background.png)
Displaying the Time
Adding Headers and Footers
10–14
058060 Tandem Computers Incorporated
Displaying the Time
TFORM automatically keeps track of the current time—called the system
time—and stores this information in a variable named SYS_TIME. By using
the TIME command with SYS_TIME, you can print the time in headers or
footers.
To put the time in your document, first enter the TIME command. Then
enter SYS_TIME in the location in your header or footer where you want
the time to appear. When you enter SYS_TIME, be sure to enclose it in
parentheses and begin and end with backslashes:
\(SYS_TIME\)
Figure 10-9 shows two edit files. The first file contains the commands used
to include both the time and the date in a header. The second file puts the
time in a footer. Figure 10-10 shows the printed results of these two files.
Figure 10-9. Entering the Time in a Header or Footer
\TIME
\TODAY SHORT USA
\HEADER "STOCK QUOTES|\(SYS_DATE\)|\(SYS_TIME\)"
\TIME
\FOOTER "|Document printed at \(SYS_TIME\)|"
The TIME command
must precede the
header or footer
containing SYS_TIME.