mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-29 11:47:41 +02:00
.add age function
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user