displaying time
-
Hi all, in my application i have two buttons accept and hangup and a label... if i click accept button and afterwards i will click the hangup button... in the label i want to display the time taken to click the hangup button and i want to display the time continuously (some tghing like progress)in that label.
-
Hi all, in my application i have two buttons accept and hangup and a label... if i click accept button and afterwards i will click the hangup button... in the label i want to display the time taken to click the hangup button and i want to display the time continuously (some tghing like progress)in that label.
See if this helps, In this page javascript displays a real time clock updated by seconds, I guess this is not exactly what you are looking for but this may help. JavaScript Realtime Clock var tick; function stop() { clearTimeout(tick); } function usnotime() { var ut=new Date(); var h,m,s; var time=" "; h=ut.getHours(); m=ut.getMinutes(); s=ut.getSeconds(); if(s<=9) s="0"+s; if(m<=9) m="0"+m; if(h<=9) h="0"+h; time+=h+":"+m+":"+s + " UTC"; document.rclock.rtime.value=time; tick=setTimeout("usnotime()",1000); } //-->
TIME SERVICE DEPARTMENT
U.S. Naval Observatory, Washington, DC
Current time from your system clock: -
See if this helps, In this page javascript displays a real time clock updated by seconds, I guess this is not exactly what you are looking for but this may help. JavaScript Realtime Clock var tick; function stop() { clearTimeout(tick); } function usnotime() { var ut=new Date(); var h,m,s; var time=" "; h=ut.getHours(); m=ut.getMinutes(); s=ut.getSeconds(); if(s<=9) s="0"+s; if(m<=9) m="0"+m; if(h<=9) h="0"+h; time+=h+":"+m+":"+s + " UTC"; document.rclock.rtime.value=time; tick=setTimeout("usnotime()",1000); } //-->
TIME SERVICE DEPARTMENT
U.S. Naval Observatory, Washington, DC
Current time from your system clock:hi thanks for the effort....... i am developing Windows application and i am writing the code in VB.Net
-
hi thanks for the effort....... i am developing Windows application and i am writing the code in VB.Net