Re: time calculation
- From: * Tong * <sun_tong_001@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 11:40:12 -0500
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. :-)
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: time calculation
- From: Uwe Klein
- Re: time calculation
- References:
- time calculation
- From: * Tong *
- Re: time calculation
- From: keithv
- time calculation
- Prev by Date: Re: Tcl/Tk Books updated for 8.5
- Next by Date: Re: Handling asynchronous hardware events
- Previous by thread: Re: time calculation
- Next by thread: Re: time calculation
- Index(es):
Relevant Pages
|