Skip to content
Tcl Source Code Artifact [3d88d36afd]
Login

Artifact [3d88d36afd]

Artifact 3d88d36afdd598cb3583fa120b0bf960bbcde665:

Ticket change [3d88d36afd] - New ticket [2010909fffffffff|2010909fff] <i>clock scan fails with %V</i>. by haertel on 2008-07-04 19:54:12.
D 2008-07-04T19:54:12
J assignee nobody
J cmimetype text/plain
J comment The\sclock\sscan\scommand\sreturns\salways\sthe\scurrent\sweek\swhen\sthe\sgiven\sformat\sonly\scontains\sthe\sweek\s(%V).\n\ntest-case\sshowing\sfailure\n\nfor\s{set\sweek\s0}\s{$week\s<\s22}\s{incr\sweek}\s{\s\n\s\s\s\s\sset\sx\s[clock\sscan\s"$week\s2008"\s-format\s"%V\s%Y"]\s\n\s\s\s\s\sputs\s[clock\sformat\s$x]\s\n}\n\nHowever\sit\sworks\scorrectly\swhen\sa\sweek\sday\sis\ssupplied.\n\ntest-case\sworkaround\n\n\sfor\s{set\sweek\s0}\s{$week\s<\s22}\s{incr\sweek}\s{\s\n\s\s\s\s\sset\sx\s[clock\sscan\s"$week\sSun"\s-format\s"%V\s%A"]\s\n\s\s\s\s\sputs\s[clock\sformat\s$x]\s\n\s\n}\n\n\nThis\scould\sbe\sa\sfix\sin\sthe\scode.\sIn\sthat\sit\sassumes\sthe\scurrent\sday.\n\nOr\sthis\scould\sbe\sa\sfix\sin\sthe\sdocumentation.\sIn\sthat\sit\sis\sclearly\sstated\sthat\sfor\sthe\sscan\sand\sformat\s%V\sthe\sweek\sday\sshall\sbe\ssupplied\sto.\n\n\nFrom\smy\spoint\sof\sview\sI'd\sprefer\sa\sfix\sin\sthe\scode.\sPrimarily\sbecause\sclock\salready\sassumes\sin\sthe\sworkaround\sthat\sthe\syear\sis\sthe\scurrent\syear.
J foundin obsolete:\s8.5.3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter haertel
J subsystem None
J title clock\sscan\sfails\swith\s%V
J type RFE
K 2010909fffffffffffffffffffffffffffffffff
U haertel
Z ba4a16db629107bce57b976e6a0a96b6