[clock scan "next january"] errors
Closed / Fixed219051ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:56
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
welch Closed ticket [219051ffff].
[History diff]2000-10-26 08:34:06
dgp Ticket [219051ffff]: 4 changes
[History diff]2001-04-05 06:56:32
Log in (anonymous is fine) to add a comment.