Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d88d36afdd598cb3583fa120b0bf960bbcde665
Ticket: 2010909fffffffffffffffffffffffffffffffff
clock scan fails with %V
User & Date: haertel on 2008-07-04 19:54:12
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
  4. foundin changed to: "obsolete: 8.5.3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "haertel"
  10. subsystem changed to: "None"
  11. title changed to: "clock scan fails with %V"
  12. type changed to: "RFE"