I need to compute time in 2 different instants and return the difference in the format days, hours, minutes, seconds.
However, when I try doing that, the difference is not correct as it keeps adding 1hour to the result. Instead of 00:00:07, it returns 01:00:07. On top of that, I can't understand the default date from 1 Jan 1970.
Any ideas? Thanks, Pedro
set t1 [clock seconds]
1634735417
set t2 [clock seconds]
1634735424
set t [expr $t2 - $t1]
7
clock format $t
Thu Jan 01 01:00:07 CET 1970