Skip to content
Tcl Source Code History Of Ticket 1120012fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1120012fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1120012fffffffffffffffffffffffffffffffff

  1. Ticket change [3f37db05ea] (rid 121416) by coldstore on 2005-02-10 13:10:55:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      clock scan accepts fairly wild dates, such as the 99th
      of February 2005, but rejects the 100th of February ...
      I haven't tried this on a leap year :)
      
      I would expect it to error on such dates.
      
      % clock scan 2005/02/99 -format %Y/%m/%d
      1115647200
      % clock scan 2005/02/100 -format %Y/%m/%d
      input string does not match supplied format
      % puts $tcl_version
      8.5
      % puts $tcl_patchLevel
      8.5a2
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "coldstore"
    9. subsystem initialized to: "06. Time Measurement"
    10. title initialized to: "clock scan accepts bogus dates"
    11. type initialized to: "Bug"
  2. Ticket change [d7b4d388bd] (rid 107311) by coldstore on 2005-02-10 21:12:35:

    1. icomment:
      Logged In: YES 
      user_id=19214
      
      I only discovered this behavior because I was relying on
      [clock scan]'s error to construct a calendar.
      
      I was iterating over day and scanning $day/$month/$year
      until it errored saved me having to remember how many days
      in each month, correcting for leap years and centuries.
      
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  3. Ticket change [03995a44ec] (rid 119854) by kennykb on 2005-02-10 22:13:57:

    1. status changed to: "Closed"
  4. Ticket change [15515a4dc9] (rid 124547) by kennykb on 2005-02-10 22:13:58:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      This behavior is by design; [clock scan] 
      will accept any number that matches the 
      format group, even if it is outside the range.
      This is actually useful on occasion.  In fact,
      one of the ways to determine the number
      of days in a month is to give [clock scan]
      day zero of the following month (which might
      be month thirteen).  The attached file gives
      the idea.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. username: "kennykb"
  5. Ticket change [47bf78186e] (rid 99757) by kennykb on 2005-02-10 22:13:59:

    1. closedate changed to: "2005-02-10T15:13:59"
    2. closer changed to: "kennykb"
  6. Ticket change [becde2ae51] (rid 102142) by kennykb on 2005-02-10 22:14:02:

    1. icomment:
      
      
      File Added - 119462: daysinmonth.tcl
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  7. Ticket change [165702d966] (rid 124705) by kennykb on 2005-02-10 22:33:24:

    1. icomment:
      
      
      File Added - 119467: daysinmonth.tcl
      
      Logged In: YES 
      user_id=99768
      
      A more obvious method to find the last 
      day of the month in 8.5, by the way, is
      to use [clock add], giving it 1 month
      -1 day.  I've updated the attachment to
      show both methods.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  8. Add attachment "daysinmonth.tcl" [6e1c23f82e] (rid 128816) by kennykb on 2005-02-10 22:33:24.

  9. Ticket change [c2bac2439e] (rid 111530) by kennykb on 2005-02-10 22:33:25:

    1. icomment:
      
      
      File Deleted - 119462: 
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"