Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elan!kg From: kg@elan.UUCP (Ken Greer) Newsgroups: comp.text Subject: Re: Time of Day in troff (and .TH in LaTeX) Message-ID: <512@elan.UUCP> Date: 9 Apr 89 19:55:20 GMT References: <16810@cos.com> Organization: Elan Computer Group, Inc., Mountain View, CA Lines: 16 From article <16810@cos.com>, by duc@cos.com (Duc Kim Nguyen): > > (1) troff: how do I get time of day ? Similar to to get date from > troff, number registers dy, mo and yr, is there some thing like > hr, mi, se (for hour, minute, second) ? Try this! .sy /bin/date +".nr hr %H%n.nr mi %M%n.nr se %S" > /tmp/date\n($$ .so /tmp/date\n($$ .sy rm -f /tmp/date\n($$ Ken Greer Elan Computer Group, Inc. {ames,uunet}!elan!kg 415-964-2200