|
2001-04-05
| ||
| 06:56 | • Ticket [218412ffff] clock format -format %H output incorrect status still Cl... artifact: 8943084450 user: dgp | |
|
2000-10-26
| ||
| 08:21 | • Closed ticket [218412ffff]. artifact: 83d1f75d78 user: welch | |
| 00:57 | • New ticket [218412ffff]. artifact: 820bb649b5 user: nobody | |
clock format -format %H output incorrect
Closed / Fixed218412ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:16
OriginalBugID: 5444 Bug
Version: 8.3.1
SubmitDate: '2000-05-11'
LastModified: '2000-05-11'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux
Machine: Dell Inspiron 7000
FixedDate: '2000-10-25'
ClosedDate: '2000-05-11'
Name:
Bruce Edge
Comments:
This is all based on the assumption that I can use clock format with
relative times. It handles the minutes and seconds correctly, just not
the hours.
ReproducibleScript:
clock.tcl:
set date1 "03/01/2000 00:14:03"
set date2 "03/01/2000 00:15:10"
set t1 [clock scan $date1]
set t2 [clock scan $date2]
set tdiff [expr ($t2 - $t1)]
puts "$t2 - $t1 = $tdiff"
puts "[clock format $tdiff -format %H], [clock format $tdiff -format %M], [clock format $tdiff -format %S]"
> tclsh clock.tcl ~/customers/mexico/cdr
951898510 - 951898443 = 67
16, 01, 07
ObservedBehavior:
The output for [clock format $tdiff -format %H] should be 00, not 16.
DesiredBehavior:
> tclsh clock.tcl ~/customers/mexico/cdr
951898510 - 951898443 = 67
00, 01, 07
The format is correct, as it's based off the epoch. The user
wants different time calculations for time elapsed. Note also
that there needs to be only one clock format command above.
-- 05/11/2000 hobbs
welch Closed ticket [218412ffff].
[History diff]2000-10-26 08:21:18
dgp Ticket [218412ffff]: 3 changes
[History diff]2001-04-05 06:56:34
Log in (anonymous is fine) to add a comment.