Re: %W in the clock command



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


.



Relevant Pages

  • %W in the clock command
    ... I'm using tcl8.5a4 on windows XP ... of the "clock" command but doesn't seem to work! ... can't read "Wweeknumber": no such variable ...
    (comp.lang.tcl)
  • Re: [opensuse] Postfix and clock weirdness.
    ... why did the clock jump back two whole seconds? ... When shutting down I would almost always be either returned to the login screen or, the most prevalent, I would end up I believe at level 3 command line prompt and be asked to login as root by providing the password. ... At other times 10.2 would either simply attempt the shutdown but then 'lockup' and just keep running with Suse's opening blue splash screen and I would have to press the 'big red button', or 10.2 would actually shutdown normally. ... Error message #1: ...
    (SuSE)