<div id="time">
<span></span>:<span></span>:<span></span>
</div>
<script>
var sp = document.querySelectorAll('#time span');
(t=()=>{
new Date().toString().slice(15,24).split(':').forEach((d,i)=>{
if(sp[i].textContent != d) sp[i].textContent = d;
});
setTimeout(t,1000);
})();
</script>
Для разнообразия