Hi member, before appending it to the lbltothrsedit
add all those val1 to val7 values and just do this statements
var tick = 7512
var hrs = Math.floor(tick/3600);
var mins = Math.floor((tick % 3600)/60);
var secs = tick % 60;
var tock = (hrs < 10 ? "0" : "" ) + hrs + ":"
+ (mins < 10 ? "0" : "" ) + mins + ":"
+ (secs < 10 ? "0" : "" ) + secs;
or this way also
var tick = 7512
var hrs = Math.floor(tick/3600);
tick = tick - 3600 * hrs;
var mins = Math.floor(tick/60);
tick = tick - 60 * mins;
var secs = tick;
var tock = (hrs < 10 ? "0" : "" ) + hrs + ":"
+ (mins < 10 ? "0" : "" ) + mins + ":"
+ (secs < 10 ? "0" : "" ) + secs;
or this way also
var tick = 7512
var secs = tick % 60;
tick = ( tick - secs ) / 60;
var mins = tick % 60;
tick = ( tick - mins ) / 60;
var hrs = tick;
var tock = (hrs < 10 ? "0" : "" ) + hrs + ":"
+ (mins < 10 ? "0" : "" ) + mins + ":"
+ (secs < 10 ? "0" : "" ) + secs;
I haven't tried running the code, just check it and let us know if u r facing any issues after working on this part of code.
Thanks
Ganesh