![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: calculate time span
From: Uwe Klein <uwe_klein_habertwedt@t-online.de>
Date: Mon Feb 27 2006 - 10:13:51 CET
Lisa Pearlson wrote:
format specifier "%j" is day of year.
an alternate would be
set tdiff 12345678
set days [ expr $tdiff / $sec_in_day ]
if {$days} {
append tdiffstr [ clock format $sec_remain -fmt "%T" -gmt 1 ]
uwe
|