초를 시:분:초로 변경해주는 function javascript test page. <!DOCTYPE html> <html> <body> <p>초를 시 분 초로 변경</p> <button onclick="test('1237')">Try it</button> <p id="demo"></p> <script> function test(seconds) { var hour = parseInt(seconds/3600); var min = parseInt((seconds%3600)/60); var sec = seconds%60; document.getElementById("demo").innerHTML = hour+":"+min+":" + sec } </script> </body> </html> Please enable JavaScript to view the comments powered by Disqus.