Re: time calculation
- From: Bruce Hartweg <bruce-news@xxxxxxxxxx>
- Date: Mon, 30 Oct 2006 09:19:05 -0600
keithv wrote:
* Tong * 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:
clock format [expr {([clock scan 09:51:16] - [clock scan 00:00:00])}]
-format "%H:%M:%S" -gmt 1
Keith
That only hides the problem for a little bit.
It'll still be bogus is the value is more than 24 hours.
Bruce
.
- 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: time calculation
- Next by Date: docs for OptProc
- Previous by thread: Re: time calculation
- Next by thread: Re: time calculation
- Index(es):