Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 88906178f9a8bf0cb829e11cdbddcdf04c901c07
Ticket: 219051ffffffffffffffffffffffffffffffffff
[clock scan "next january"] errors
User & Date: nobody on 2000-10-26 01:09:56
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4146 Bug
    Version: 8.3b2
    SubmitDate: '2000-02-08'
    LastModified: '2000-02-08'
    Severity: SER
    Status: Released
    Submitter: ericm
    ChangedBy: ericm
    OS: All
    FixedDate: '2000-02-08'
    FixedInVersion: 8.3
    ClosedDate: '2000-10-25'
    
    
    In 8.2, [clock format [clock scan "next january"]] gave this (roughly):
    
    Jan 2 currentyear 
    
    In 8.3b2, it errors saying that it can't scan next january.
    
    The 8.2 behavior is wrong, as it is interpreting "next january" as "2 january".  At worst 8.3 should have the same behavior; at best it should do the "right thing" and give "Jan 1 nextyear".
    
    - eric
    
    
    
    When I updated the grammar to handle "next month" and similar constructs, I neglected to add "next monthname" where monthname is Jan, Feb, etc.  I added this construct, and a function to handle it (NamedMonth), so that the behavior now is to return the next occurance of the named month.  So, in feb thisyear, "next feb" will give feb of nextyear; "next mar" will give mar of thisyear; etc.
    
    Obviously this is incompatible with the 8.2 behavior, but since that clearly did not give the result that one expects, I don't think that it will be an issue.
    
    - eric
    
    
    
  4. foundin changed to: "obsolete: 8.3b2"
  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 "next january"] errors"
  11. type changed to: "Bug"