본문으로 바로가기

<script type="text/javascript">

function getTimeStringSeconds(seconds){


var hour, min, sec


hour = parseInt(seconds/3600);

min = parseInt((seconds%3600)/60);

sec = seconds%60;


if (hour.toString().length==1) hour = "0" + hour;

if (min.toString().length==1) min = "0" + min;

if (sec.toString().length==1) sec = "0" + sec;

return hour + ":" + min + ":" + sec;

}



alert(getTimeStringSeconds(10000)); 

</script>





asp

http://devlink.tistory.com/25