Yup! Been there, wished for that. Same reason, too - logging!
John
At 1/22/99 05:19 PM , Mark Bixby wrote:
>Has anybody else ever wished for an HPSECOND CI variable to go along with the
>current time-of-day variables HPHOUR and HPMINUTE?
>
>I have some CI scripts that append events to log files, but I'm forced to just
>use HH:MM for a timestamp because there's no seconds variable, and I'm
>too lazy to capture and parse :SHOWCLOCK output (the only CI command I know
>of to display seconds in a timestamp).
>
>If I was doing a SH script, I would simply do "TIME=`date +%H:%M:%S`" because
>it's so easy. Sure, I could call DATE.HPBIN.SYS from a CI script, but I'd
>have to redirect it to a temporary file, read the file into a variable, then
>delete the file. Tedious!
>
>It seems to me this would be a really easy CI enhancement, given that HPHOUR
>and HPMINUTE already exist.....
>--
>Mark Bixby E-mail: [log in to unmask]
>Coast Community College Dist. Web: http://www.cccd.edu/~markb/
>District Information Services 1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
>Technical Support Voice: +1 714 438-4647
>"You can tune a file system, but you can't tune a fish." - tunefs(1M)
--------------------------------------------------------------
John Korb email: [log in to unmask]
Innovative Software Solutions, Inc.
The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.
|