mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
10 lines
267 B
JavaScript
10 lines
267 B
JavaScript
function calculateYearsSince() {
|
|
const myDate = new Date('2009-06-08');
|
|
|
|
const diffInMs = Date.now() - myDate.getTime();
|
|
const diffInNs = diffInMs * 1000000
|
|
|
|
document.getElementById("number").innerText = diffInNs
|
|
}
|
|
|
|
setInterval(calculateYearsSince, 0) |