<div id='time'></div>
<div id='time'></div>
#time { background-color: #fff; font: 30px 'segoe ui light'; }
#time { background-color: #fff; font: 30px 'segoe ui light'; }
function clock(date){
function clock(date){
var s = date.getSeconds().toString();
var m = date.getMinutes().toString();
var h = date.getHours().toString();
if(s.length==1) s = '0' + s;
if(m.length==1) m = '0' + m;
if(h.length==1) h= '0' + h;
document.getElementById("time").innerHTML = h + ":" + m + ":" + s;
}
setInterval("clock(new Date())", 1000);