Re: %W in the clock command



Uwe Klein wrote:
Donald Arseneau wrote:
Eric Hassold <hassold@xxxxxxxxxxx> writes:


There was a typo in clock.tcl ($Wweeknumber instead of $WweekNumber).


Mind blowing! Obviously $Wweeknumber is a typo, but it isn't
the typo I had expected!

Let me guess: all the VarNames start with their FormatSpecifier
to make the mapping clear?

Not all. But there are three ways for calculating week
number: %V, which is what most people want (iso8601WeekNumber)
and %U and %W. Since %U and %W both calculate week numbers that
don't appear to match any external standards, I couldn't think
of more mnemonic names than UweekNumber and WweekNumber. They're
pretty obvious in context, since the cases are alphabetised:
%U, %V, %W are right in a row doing UweekNumber, iso8601weekNumber,
and WweekNumber.

--
73 de ke9tv/2, Kevin
.



Relevant Pages