HP3000-L Archives

January 1995, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Mon, 23 Jan 1995 08:31:26 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
[log in to unmask] (JimFennell) writes:
>I have written a command that, among other lings, logs its activity in a
>circular file.  It does so using the ECHO command and redirecting the
>output to the circular file.  I have no problem includding the current
>time in HH:MM format, but I have now received a request to log the seconds
>as well (HH:MM:SS).  I am getting the hours and minutes from the MPE
>variables !HPHOUR and !HPMINUTE respectively, but I cannot find a way to
>get the current time down to the second from an MPE command file.
>
>Does anyone have any ideas?  I'd like to avoid having to call a program
>just for this, if possible.  Reply or e-mail would be good.
 
MPEX contains a CLOCK variable/funtion that returns the current time to the
second, as well as funtions to add, subtract, and format the result for
display or logging.  Although this does mean you'll have to run a program
(MPEX, that is), MPEX will support all the MPE commands in your command file
to begin with, so this may be a viable option.
 
Tom Emerson
VESOFT, Inc.
310-282-0420

ATOM RSS1 RSS2