Skip to content
Tcl Source Code History Of Ticket 1118650fffffffff
Login

History Of Ticket 1118650fffffffff

Artifacts Associated With Ticket 1118650fffffffff

  1. Ticket change [3db6554a45] (rid 121134) by yandres on 2005-02-08 14:32:26:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Following five commands work perfectly with Tcl 8.0 but 
      have stopped working with TCL8.3 and 8.4.
      
      set timeCurrent [clock format [clock scan seconds]]
      set i 2
      set twoDaysAfter [clock format [clock 
      scan "$timeCurrent $i days"]]
      set i -2
      set twoDaysBefore [clock format [clock 
      scan "$timeCurrent $i days"]]
      
      
      The message of Tcl is the following:
      
      "unable to convert date-time string "Tue Feb 08 
      14:25:41 GMT 2005 -2 days"
      
    4. foundin initialized to: "final: 8.3.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "yandres"
    9. subsystem initialized to: "06. Time Measurement"
    10. title initialized to: "Problem with function clock"
    11. type initialized to: "Bug"
  2. Ticket change [e96dc5165b] (rid 104818) by kennykb on 2005-02-08 22:31:31:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      I'll have a look at this, but you 
      should be aware that there are
      so many ambiguities in free-form
      [clock scan] that the problem may
      not be fixed in the 8.4 series.
      
      A better way to get the same effect 
      would be to use the '-base' option on
      the [clock scan] command:
      
      set timeCurrent [clock format [clock seconds]]
      set i 2
      set twoDaysAfter \ 
          [clock scan "$i days" -base $timeCurrent]
      set i -2
      set twoDaysBefore \
          [clock scan "$i days" -base $timeCurrent]
      
      That should be enough to get your program
      running again.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [c94c9e9749] (rid 122259) by kennykb on 2005-02-08 23:35:01:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      This problem is going to be VERY hard to
      fix in the 8.4 series - essentially, a YACC
      parser is not appropriate to this sort of
      thing.  The fixed-format [clock scan] in
      8.5 and beyond provides ready ways to
      solve this problem, and a workaround has
      been presented.  Closing this out with
      "Won't Fix" in 8.4.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Wont Fix"
    5. status changed to: "Closed"
    6. username: "kennykb"
  4. Ticket change [3e2345e928] (rid 121212) by kennykb on 2005-02-08 23:35:02:

    1. closedate changed to: "2005-02-08T16:35:02"
    2. closer changed to: "kennykb"