Article View: comp.text
Article #6133Re: Time of Day in troff (and .TH in LaTeX)
From: Ken Greer
Date: Sun, 09 Apr 1989 19:55
Date: Sun, 09 Apr 1989 19:55
16 lines
796 bytes
796 bytes
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
Technical Details
Message-ID:
<512@elan.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elan!kgReferences:
<16810@cos.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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