Template:IxTime

Loading Ix Time...  function calculateIxTime { var epoch = new Date(2020, 9, 4).getTime / 1000; // JavaScript uses milliseconds, so divide by 1000 var currentTime = Math.floor(new Date.getTime / 1000); var secondsSinceEpoch = currentTime - epoch; var ixTime = Math.floor(secondsSinceEpoch * 4.0 + epoch);

// Format the Ix Time var ixDate = new Date(ixTime * 1000); var options = { weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "2-digit", minute: "2-digit", timeZoneName: "short", };   return ixDate.toLocaleString("en-US", options); }

document.getElementById("ix-time-display").innerText = calculateIxTime;