Re: time calculation



* Tong * wrote:
On Mon, 30 Oct 2006 07:16:31 -0800, keithv wrote:


% clock format [expr {([clock scan 09:51:16] - [clock scan 00:00:00])}] -format "%H:%M:%S"
04:51:16

I'd think the result'd be 09:51:16, why 04:51:16?

Timezone issues. Try formatting in the neutral GMT timezone...


Hi, thanks Keith & Uwe for the awesome answers, which actually answered my
next question -- I was trying to figure out why my tcl clock was 1 hour
faster yesterday, after the day light saving time was ended. :-)

you are welcome ;-)

and that with everybody nagging about "Tcl has no future"

uwe
.



Relevant Pages

  • Re: time calculation
    ... Timezone issues. ... Try formatting in the neutral GMT timezone... ... Hi, thanks Keith & Uwe for the awesome answers, which actually answered my ...
    (comp.lang.tcl)
  • Re: Using foreach with set
    ... Keith wrote: ... Thanks for the fast response. ... your initual example is just missing a pair of ...
    (comp.lang.tcl)