Tcl 8.4 on Solaris 10
I’m trying to convert minutes to hours and minutes.
If xlateInVals is 0141 the result I’m getting is 0321, but it should be 0221. I’m obviously doing something wrong but I can’t work out what.
Thanks,
Dave
I’m trying to convert minutes to hours and minutes.
Code:
set x [lindex $xlateInVals 0]
set x [string trimleft $x 0]
set x [expr $x * 60]
set hhmm [clock format $x -format "%H%M"]
puts "Time Out >$hhmm<"
set xlateOutVals $hhmm
Thanks,
Dave