groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Is there a good way to get time/date?


From: Werner LEMBERG
Subject: Re: [Groff] Is there a good way to get time/date?
Date: Sun, 23 Jun 2002 17:13:10 +0200 (CEST)

About two years ago you wrote:

> In order to get the time/date I've done:
>       
> 
> .sy echo Printed `date` >current.date
> .so current.date
> .sy rm current.date
> .sy stat \n(.F | fgrep Change >change.time
> .so change.time
> .sy rm change.time
> 
> And it produced:
>             Printed Tue Apr 25 13:09:26 EDT 2000
>       Change: Tue Apr 25 13:08:33 2000(00000.00:00:53)
> 
> Is there a better way?  There could be.
> (this is very useful when doing documents)

Right now I've added to the CVS the read/write registers `hours',
`minutes', and `seconds' which are initialized at start-up of groff.


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]