<script> function updateTime() {

 var now = new Date();
 var options = {year: 'numeric', month: 'long', day: 'numeric', hour:'2-digit', minute:'2-digit', second:'2-digit'};
 document.getElementById('current-time').textContent = now.toLocaleString('en-US', options);

} updateTime(); setInterval(updateTime, 1000); </script>