[Info-vax] Long uptime cut short by Hurricane Sandy

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Thu Jan 31 11:56:49 EST 2013


On 2013-01-31 16:32:44 +0000,   VAXman-  @SendSpamHere.ORG said:

> Or, skip the myriad excursions through LIB$CVT_TIME and LIB$CVT_DTIME, and
> let DCL do one of the things it does best...
> 
> $ filename = filenameprefix+"_"+F$cvtime(,"COMPARISON")-"-"-"-"-" 
> "-":"-":"-"."+".dmp"

Yes.  That's definitely better than what I'd posted[1].

But you're not going to convince me that DCL is superior to bash here; 
that printf-style notation is just plain handy.

———
[1] Pedantic: what you've posted does not produce exactly same output.  
It's very close, but not the same.

-- 
Pure Personal Opinion | HoffmanLabs LLC




More information about the Info-vax mailing list