Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 39967038ef2481b36d5eb10cdffe327a83cfdb90
Ticket: 3531146fffffffffffffffffffffffffffffffff
clock scan does not error when missing undelimited fields
User & Date: bovineone on 2012-05-31 18:24:56
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In the following example, the first string being parsed is missing the seconds needed for the %S parameter, so it chooses to put one of the digits in the minutes field and one of them in the seconds field instead:
    
    clock scan "1205311743" -format "%y%m%d%H%M%S" -gmt 1
    1338483843
    
    clock format 1338483843 -gmt 1
    Thu May 31 17:04:03 GMT 2012
    
    The expected behavior would probably to treat the missing seconds as zero, or to raise an error:
    
    clock scan "120531174300" -format "%y%m%d%H%M%S" -gmt 1
    1338486180
    
    
  4. foundin changed to: "obsolete: 8.5.11"
  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: "bovineone"
  10. subsystem changed to: "06. Time Measurement"
  11. title changed to:
    clock scan does not error when missing undelimited fields
    
  12. type changed to: "Bug"