<span id="clock">{date("Y-m-d H:i:s", time());}</span>
<!--// 현재 시간 실시간 카운트 -->
<script>
var srv_time = "{date("F d, Y H:i:s", time())}";
var now = new Date(srv_time);
setInterval("server_time()", 1000);
function server_time()
{
now.setSeconds(now.getSeconds()+1);
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
if (month < 10){
month = "0" + month;
}
if (date < 10){
date = "0" + date;
}
if (hours < 10){
hours = "0" + hours;
}
if (minutes < 10){
minutes = "0" + minutes;
}
if (seconds < 10){
seconds = "0" + seconds;
}
document.getElementById("clock").innerHTML = year + "-" + month + "-" + date + " " + hours + ":" + minutes + ":" + seconds;
}
</script>