mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
12 lines
274 B
JavaScript
12 lines
274 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
|
|
}
|
|
|
|
while (true) {
|
|
calculateYearsSince()
|
|
} |