PROJECT: MAC REPLACEMENT PROJECT DOC. TYPE: DESIGN SPECIFICATION DOC NO.: 3 TITLE: DATE AND TIME GENERATOR FOR INDIRECT COMMAND FILES DATE: 10-JAN-79 21:40 AUTHOR: D.B.CURTIS GROUP: LIBRARY SUBJECT: METHOD OF OBTAINING THE CURRENT DATE AND TIME FILE: GETTIME.RNO PAGE 2 1.0 OBJECTIVES This document describes a method of obtaining the date and time from an indirect command file. 2.0 DISCUSSION There often exist times when it is nessasary to generate the date and time from an indirect command file. The @ processor does not supply a method of doing this. This document describes a method to satisy this need. 3.0 DETAILED PLAN The following command lines will generate two global string variables that contain the date and time. .ENABLE SUBSTITUTION .ENABLE GLOBAL TEC @LB:[17,377]DATTIM.TEC @LB:[17,377]DATTIM ; PRINT THE DATE '$DATE' AND THE TIME '$TIME' / The date is returned in variable $DATE and the time in variable $TIME. The teco macro DATTIM.TEC may be examined to determine the method of generating the date and time. 4.0 GLOSSARY