Skip to content
Tcl Source Code View Ticket
Login

View Ticket

future dates in clock scan do not give time

Closed / Fixed219018ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:26
OriginalBugID: 3962 Bug
Version: 8.0.4
SubmitDate: '2000-01-03'
LastModified: '2000-01-10'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: All Unix
OSVersion: ptx/Dynix 4.4.2
Machine: Numa-Q 2000
FixedDate: '2000-01-10'
FixedInVersion: 8.3b2
ClosedDate: '2000-01-03'


Name:
Marlon McGlashan

Extensions:
8.0.4

ReproducibleScript:
clock format [clock scan "next 1 year"] -format "%H:%M %d %b %Y"
# time incorrect
clock format [clock scan "1 year ago"] -format "%H:%M %d %b %Y"
# gives good time



OK, this is somewhat complex, but both of the above are not what
the user wants.  "next # years" is not actually a correct use of
the grammar, as shown by the fact that "last # years" doesn't work.
What it was returning is the equivalent of "2 # years", which means
hour 2 of the number of years.  2 was an error, and is fixed in 8.3b2,
as is the fact that it should be hours but was minutes.

Anyway, what the user really wants is "# years", and number can be
positive or negative. 
-- 01/10/2000 hobbs
welch Closed ticket [219018ffff]. [History diff]2000-10-26 08:33:09
dgp Ticket [219018ffff]: 3 changes [History diff]2001-04-05 06:56:32
Log in (anonymous is fine) to add a comment.