Re: [clock] behaves just slow (Re: [clock scan] behaves inconsistently in Tcl8.5 (was: Re: [clock scan day] behaves differentyl in Tcl8.5 than in Tcl8.4))
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: [clock] behaves just slow (Re: [clock scan] behaves inconsistently in Tcl8.5 (was: Re: [clock scan day] behaves differentyl in Tcl8.5 than in Tcl8.4))

From: Andreas Kupries <akupries@shaw.ca>
Date: Wed Sep 07 2005 - 05:35:04 CEST

"Bob Techentin" <techentin.robert@mayo.edu> writes:

> "Donald Arseneau" <asnd@triumf.ca> wrote
> >
> > I would like "now" to be a valid time string, so
> > [clock format now] etc. to reduce the nesting.
>
> Well, it is sort of a time string.
>
> clock format [clock scan now]
>
> should give you the current date and time.

However

        clock format [clock seconds]

should be faster. 'clock scan now' will internally reduce to 'clock
seconds', but has the overhead of parsing now, etc.

-- 
So long,
	Andreas Kupries <akupries@shaw.ca>
			<http://www.purl.org/NET/akupries/>
	Developer @	<http://www.activestate.com/>
-------------------------------------------------------------------------------
}
Received on Thu Sep 29 14:35:48 2005