beep boop

This commit is contained in:
Boof 2023-06-09 11:48:21 +02:00 committed by GitHub
parent dca5aa7b59
commit 890009e58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
ms.js
View File

@ -2,13 +2,7 @@ function calculateYearsSince() {
const myDate = new Date('2009-06-08');
const diffInMs = Date.now() - myDate.getTime();
const diffInYears = diffInMs / (1000 * 60 * 60 * 24 * 365.25);
const days = Math.floor(diffInMs / (1000 * 60 * 60 * 24));
const hours = Math.floor(hoursSince())
const minutes = Math.floor(diffInMs / 1000 / 60)
//const hours = Math.floor((diffInMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
//const minutes = Math.floor((diffInMs % (1000 * 60 * 60)) / (1000 * 60));
document.getElementById("number").innerText = diffInMs
}