Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 43161337c45d11d89ae30688891ae4251f3c5ddd
Ticket: 692992ffffffffffffffffffffffffffffffffff
clock scan eats leading 0's with hhmm time format
User & Date: lewca43 on 2003-02-25 16:13:11
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    clock scan can not convert time in hhmm format where hh
    = 00 and mm > 23. The root of the problem seems to be
    that it strips leading 0's and 0023 becomes 2300. If
    this is the intended behavior, then the documentation
    should be updated.
    
    http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm indicates
    the following for the "time" values in the "dateString"
    argument of the clock scan command:
    
    time
    A time of day, which is of the form: hh?:mm?:ss??
    ?meridian? ?zone? or hhmm ?meridian? ?zone?. If no
    meridian is specified, hh is interpreted on a 24-hour
    clock.
    
    however it can correctly convert hh:mm with same values.
    
    % parray tcl_platform
    tcl_platform(byteOrder) = bigEndian
    tcl_platform(machine)   = sun4u
    tcl_platform(os)        = SunOS
    tcl_platform(osVersion) = 5.8
    tcl_platform(platform)  = unix
    tcl_platform(user)      = bschofie
    tcl_platform(wordSize)  = 4
    % puts $tcl_patchLevel
    8.4.1
    % clock scan 00:24
    1046150640
    % clock scan 0024
    unable to convert date-time string "0024"
    % clock scan 0023
    1046232000   <----------------- wrong value
    % clock scan 00:23
    1046150580
    % clock scan 23
    1046232000
    
    
    Thanks - 
    Bryan Schofield
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "lewca43"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "clock scan eats leading 0's with hhmm time format"
  11. type changed to: "Bug"