Skip to content
Tcl Source Code History Of Ticket 3431943
Login

History Of Ticket 3431943

Artifacts Associated With Ticket 3431943

  1. Ticket change [44c422e883] (rid 116761) by jeremy_c on 2011-11-01 14:46:42:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The documentation states that %y is a 2 digit year. However, clock scan will allow it to be a 1 digit year (which doesn't happen in the real world, and if it would, it would most likely be prefixed with a zero). An example:
      
      puts [clock format [clock scan 01221 -format %m%d%y]]
      # output = Mon Jan 22 00:00:00 EST 2001
      
      I would have expected the output to be an error indication that one could then use catch on:
      
      puts [clock format [clock scan 01221 -format %m%d%y]]
      # input string does not match supplied format
      
      For example:
      
      puts [clock format [clock scan 1 -format %m%d%y]]
      # input string does not match supplied format
      
      I am using 8.6b2 but have confirmed the problem on 8.5 as well.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "jeremy_c"
    10. subsystem initialized to: "06. Time Measurement"
    11. title initialized to: "clock scan with %y is not handled correctly"
    12. type initialized to: "Bug"