mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
beep
This commit is contained in:
parent
9e1fbb6825
commit
f3028060ca
3
index.js
3
index.js
@ -1,6 +1,5 @@
|
||||
function calculateYearsSince() {
|
||||
const now = new Date().getTime();
|
||||
const diffInMs = now.now() - now.getTime();
|
||||
const diffInMs = Date.now() - Date.getTime();
|
||||
const diffInYears = diffInMs / (1000 * 60 * 60 * 24 * 365.25);
|
||||
const days = Math.floor(diffInMs / (1000 * 60 * 60 * 24));
|
||||
const hours = Math.floor((diffInMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user