mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
fixed minute counter
This commit is contained in:
parent
7b9add13a3
commit
7dd65d45d5
3
index.js
3
index.js
@ -5,8 +5,9 @@ function calculateYearsSince() {
|
||||
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));
|
||||
//const minutes = Math.floor((diffInMs % (1000 * 60 * 60)) / (1000 * 60));
|
||||
|
||||
document.getElementById("ageYears").innerText = Math.floor(diffInYears) + " years"
|
||||
document.getElementById("ageDays").innerText = days + " days"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user