Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dc90226379d9a518c74ea224a8b16229729d9169
Ticket: 3531146fffffffffffffffffffffffffffffffff
clock scan does not error when missing undelimited fields
User & Date: dkf on 2013-11-12 12:37:01
Changes

  1. assignee changed to: "aku"
  2. closedate changed to: "2456609.02571477"
  3. closer changed to: "dkf"
  4. 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
    
  5. login: "dkf"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"
  8. status changed to: "Closed"