User:-Zai-/Template:Time/time.js

var dt = new Date; document.getElementById("datetime").innerHTML = dt.toLocaleTimeString;