<html>
<body>
<script>
setInterval(function() {
var now = new Date();
var nowtime = "현재 시간은 " + now.getFullYear() + "년 " + (now.getMonth() +1) + "월 " + now.getDate() + "일 " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds() + "입니다.";
//var nowtime="HI";
document.getElementById("nowtime").innerHTML = nowtime;
},1000);
</script>
<p id="nowtime"></p>
</body>
</html>