<script>
window.onload = function() {
const date = new Date();
const time = date.getHours() + ':' +addZero(date.getMinutes());
document.getElementsByTagName('div') [1].innerHTML = time;
window.setTimeout(arguments.callee, 1000);
function addZero(num) {
var str = num.toString();
return str.length == 1? "0" + str : str;
};
} ();
</script>