.add age function

This commit is contained in:
skidoodle 2023-04-11 04:47:24 +02:00
parent 56e6282f68
commit 75025a11f3

6
src/utils/age.ts Normal file
View file

@ -0,0 +1,6 @@
export default function age () {
return Math.floor(
(new Date().getTime() - new Date('2004-07-22').getTime()) /
(1000 * 60 * 60 * 24 * 365.25),
);
}