ECN No Name Newsletter: December, 1990

The ECN No Name Newsletter is no longer being published. This is an archived issue.

[previous article] [next article]

Placing The Current Time In Documents

Tom Davey

To place the current time in a document, type:

In the header:
 .de TI
 .sy date | cut -f4 -d' ' | \
      cut -f1-2 -d: > /tmp/datefile
 .so /tmp/datefile
 .sy rm -f /tmp/datefile
 ..

Within the text portion of the document:
 .P
 The time that I troffed this file is
 .TI
 and I am now adding more text.

Processed text would look like:

The time that I troffed this file is 16:06 and I am now adding more text.


webmaster@ecn.purdue.edu
Last modified: Thursday, 23-Oct-97 20:33:44 EST

[HTML Check] HTML