diskfloppy.me/public/js/liveClock.js

7 lines
267 B
JavaScript
Raw Permalink Normal View History

2024-08-08 01:00:44 +00:00
function time() {
var span = document.getElementById("clock");
var d = new Date();
2024-08-22 21:23:36 +00:00
span.textContent = d.toLocaleString('en-US', {hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZone: 'Europe/London' })
2024-08-08 01:00:44 +00:00
}
setInterval(time, 1000);