Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7412550824f5a8fa2c0e48fe73da8a0dee939def
Ticket: 219050ffffffffffffffffffffffffffffffffff
[clock scan ""] yields surprising results
User & Date: nobody on 2000-10-26 01:09:55
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4144 Bug
    Version: 8.3b1
    SubmitDate: '2000-02-08'
    LastModified: '2000-02-10'
    Severity: MED
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: NT 4 patchlevel 5
    Machine: beige. rather boring, really. I wish it were Mac G4 :-)
    FixedDate: '2000-02-10'
    FixedInVersion: 8.3b2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Bryan Oakley
    
    Comments:
    this seems to be a bug in many versions, dating back to 7.6, at least.
    
    ReproducibleScript:
    set s1 [clock scan ""]
    set s2 [clock seconds]
    
    puts "result of 'clock scan \"\"': $s1 ([clock format $s1])"
    puts "result of 'clock seconds': $s2 ([clock format $s2])"
    
    ObservedBehavior:
    with the above script I'm seeing output similar to the following. Notice the two times are roughly an hour and fourteen minutes apart.
    
    result of 'clock scan ""': 950046240 (Tue Feb 08 15:44:00 Central Standard Time
    2000)
    result of 'clock seconds': 950046240 (Tue Feb 08 16:58:29 Central Standard Time 2000)
    
    DesiredBehavior:
    [clock scan ""] should either return an error, or the current time.
    
    According to the manpage, [clock scan ""] is legal, as the man page states "the dateString consists of zero or mor specifications of the following form".
    
    
    
    Fixed in 8.3b2 to return current day at 00:00. 
    -- 02/10/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "48. Number Handling"
  10. title changed to: "[clock scan ""] yields surprising results"
  11. type changed to: "Bug"