Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:56 • Ticket [219091ffff] clock scan of multiple units botches "ago"... artifact: 52ffcd9f82 user: dgp
2000-10-26
08:34 • Closed ticket [219091ffff]. artifact: a2f69381e8 user: welch
01:10 • New ticket [219091ffff]. artifact: 061d28f08a user: nobody

clock scan of multiple units botches "ago"

Closed / Fixed219091ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:35
OriginalBugID: 5497 Bug
Version: 8.3.1
SubmitDate: '2000-05-15'
LastModified: '2000-05-18'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: All
FixedDate: '2000-05-18'
FixedInVersion: 8.4a1
ClosedDate: '2000-10-25'


Name:
Roy E. Terry

Extensions:
none

Comments:
Using
    clock scan "2 days ago 2 hours ago" 
    does work but this is much less "natural to
    ask users to type or write in a config file.

ReproducibleScript:
# the following produces a time 2 days (- 2 hours) in *future*
clock scan "2 days 2 hours ago"

ObservedBehavior:
When clock scan includes 2+ units (e.g. days and hours) a trailing "ago"
directive is only applied to the immediately preceeding unit.

DesiredBehavior:
Want to see "ago" applied to all specified units in the clock scan command.
8.0 DID apply "ago" to all units.



Yes, the [clock scan] grammar changed between 8.0 and 8.3.0 and this slipped through.  I fixed the problem and added a regression test for this case.  The fix will go out with 8.4a1.

- eric

-- 05/18/2000 ericm
welch Closed ticket [219091ffff]. [History diff]2000-10-26 08:34:55
dgp Ticket [219091ffff]: 4 changes [History diff]2001-04-05 06:56:32
Log in (anonymous is fine) to add a comment.