Re: time calculation
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 16:39:09 +0100
Bruce Hartweg wrote:
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.
clock format $interval -format "%j Days %H:%M:%S" -gmt 1
fixed for one year, reaply your complaint after one year ;-)
uwe
Bruce
.
- References:
- time calculation
- From: * Tong *
- Re: time calculation
- From: keithv
- Re: time calculation
- From: Bruce Hartweg
- time calculation
- Prev by Date: Re: time calculation
- Next by Date: Re: strings in TcL
- Previous by thread: Re: time calculation
- Next by thread: Re: time calculation
- Index(es):