Re: %W in the clock command
- From: Eric Hassold <hassold@xxxxxxxxxxx>
- Date: Fri, 30 Mar 2007 00:03:43 +0200
Hi,
sd wrote :
Greetings,
I'm using tcl8.5a4 on windows XP
In http://www.tcl.tk/man/tcl8.5/TclCmd/clock.htm#M69 %W is still part
of the "clock" command but doesn't seem to work!
(bin) 7 % clock format [clock seconds] -format %W
can't read "Wweeknumber": no such variable
Has %W been taken out in favor of something else?
/sd
If %W were no more supported, this would have returned "%W" as output, without raising an error. As error message suggests, this is actually a bug in Tcl 8.5a4 (but a4 means it's alpha after all ;) )
There was a typo in clock.tcl ($Wweeknumber instead of $WweekNumber). This has been fixed in cvs on July 30 2006 (rev 1.31 of clock.tcl), while 8.4a4 has been released in April 2006. 8.5a5 has it fixed.
Eric
.
- Follow-Ups:
- Re: %W in the clock command
- From: Donald Arseneau
- Re: %W in the clock command
- From: sd
- Re: %W in the clock command
- References:
- %W in the clock command
- From: sd
- %W in the clock command
- Prev by Date: Re: Lego Mindstorms and Tcl
- Next by Date: Re: want to redefine tcltest to add database updates
- Previous by thread: %W in the clock command
- Next by thread: Re: %W in the clock command
- Index(es):
Relevant Pages
|