Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7010ad3c7a0825da880aaa74071bc793f3d2a58a
Ticket: 1090413fffffffffffffffffffffffffffffffff
Clock scan doesn't like some 12am values.
User & Date: mmoria01 on 2004-12-23 15:21:41
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    It seems "clock scan" doesn't properly recognize some 
    12am hour variants when using the format "clock scan 
    hhmm".
    
    The examples listed below are from 8.5a2 on WinXP. I 
    also found the similar behavior with 8.4.7 on Solaris-
    sparc.
    
    Listed below are examples of some that work and do not 
    work properly:
    
    
    % info patchlevel
    8.5a2
    %
    % clock format [clock scan 0030] -format "%I:%M%p"
    unable to convert date-time string "0030"
    % clock format [clock scan 1030] -format "%I:%M%p"
    10:30AM
    % clock format [clock scan 0130] -format "%I:%M%p"
    01:30AM
    % clock format [clock scan 130] -format "%I:%M%p"
    01:30AM
    % clock format [clock scan 30] -format "%I:%M%p"
    unable to convert date-time string "30"
    % clock format [clock scan 00:30] -format "%I:%M%p"
    12:30AM
    % clock format [clock scan 00:00] -format "%I:%M%p"
    12:00AM
    % clock format [clock scan :00] -format "%I:%M%p"
    unable to convert date-time string ":00"
    % clock format [clock scan 000] -format "%I:%M%p"
    12:00AM
    % clock format [clock scan 0000] -format "%I:%M%p"
    12:00AM
    % clock scan 0000
    1103695200
    % clock scan 0030
    unable to convert date-time string "0030"
    % clock scan 0000
    1103695200
    % clock scan 000
    1103695200
    % clock scan 030
    unable to convert date-time string "030"
    % clock scan 00
    1103695200
    % clock scan 30
    unable to convert date-time string "30"
    % clock scan 0
    1103695200
    % clock scan 01
    1103698800
    % clock format [clock scan 01] -format "%I:%M%p"
    01:00AM
    % clock format [clock scan 0001] -format "%I:%M%p"
    01:00AM
    %
    
    
    -Matt
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mmoria01"
  9. subsystem changed to: "06. Time Measurement"
  10. title changed to: "Clock scan doesn't like some 12am values."
  11. type changed to: "Bug"