Overview
| Artifact ID: | 18e8d0d257f92b72082debc21f2ace9f134c51da |
|---|---|
| Ticket: | 219242ffffffffffffffffffffffffffffffffff
clock scan fails with certain times |
| User & Date: | nobody on 2000-10-26 05:04:04 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 5208 Bug Version: 8.3 SubmitDate: '2000-04-20' LastModified: '2000-06-26' Severity: LOW Status: Assigned Submitter: techsupp ChangedBy: ericm RelatedBugIDs: 2732 6106 OS: All FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Devin Eyre Extensions: Oratcl2.5 Comments: The command works for times less than 0024, and times greater than 0059. It worked fine in tclsh8.2 A workaround I've found is to insert a colon in the middle of the time. I tried to search your bug database for this, but it wasn't working at the time. ReproducibleScript: clock scan "tomorrow 0024" ObservedBehavior: unable to convert date-time string "tomorrow 0024" DesiredBehavior: 956358060 Verified with 8.3.0. The problem is in the clock scan parser. All numbers with fewer than 6 digits are treated as UNUMBER tokens. The parser is then left to determine, from the magnitude of the number, whether it includes an hour component and a minute component, or just an hour component. The test used to make this determination is: $1 < 100 This works for times after 1:00am (as they would all be expressed in 24hr format as 01xx, which is greater than 100), but not for times between 0000 and 0059. Times less than 0024 are processed, but incorrectly: instead of 00:23 (for example), they are interpreted as 23:00. This is not correct behavior. Fixing this requires extending the parser to discriminate between 4-/3-digit numbers and 2-/1-digit numbers. 4 or 3 digit numbers include a two digit minute component; 2 or 1 digit numbers do not. - eric -- 04/20/2000 ericm - foundin changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "48. Number Handling"
- title changed to: "clock scan fails with certain times"
- type changed to: "Bug"