Bugs item #2010909, was opened at 2008-07-04 21:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2010909&group_id=10894Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: current: 8.5.3
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: haertel, ruediger (haertel)
Assigned to: Nobody/Anonymous (nobody)
Summary: clock scan fails with %V
Initial Comment:
The clock scan command returns always the current week when the given format only contains the week (%V).
test-case showing failure
for {set week 0} {$week < 22} {incr week} {
set x [clock scan "$week 2008" -format "%V %Y"]
puts [clock format $x]
}
However it works correctly when a week day is supplied.
test-case workaround
for {set week 0} {$week < 22} {incr week} {
set x [clock scan "$week Sun" -format "%V %A"]
puts [clock format $x]
}
This could be a fix in the code. In that it assumes the current day.
Or this could be a fix in the documentation. In that it is clearly stated that for the scan and format %V the week day shall be supplied to.
>From my point of view I'd prefer a fix in the code. Primarily because clock already assumes in the workaround that the year is the current year.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=2010909&group_id=10894-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08_______________________________________________
Tcl-Bugs mailing list
Tcl-Bugs@...
https://lists.sourceforge.net/lists/listinfo/tcl-bugs