Re: time calculation
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 17:56:19 +0100
* Tong * wrote:
On Mon, 30 Oct 2006 07:16:31 -0800, keithv wrote:you are welcome ;-)
% 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. :-)
and that with everybody nagging about "Tcl has no future"
uwe
.
- References:
- time calculation
- From: * Tong *
- Re: time calculation
- From: keithv
- Re: time calculation
- From: * Tong *
- time calculation
- Prev by Date: Re: Handling asynchronous hardware events
- Next by Date: Re: Syntax, expressiveness and the beauty of Tcl
- Previous by thread: Re: time calculation
- Next by thread: Re: time calculation
- Index(es):
Relevant Pages
|