From 120be09c2c14ed4ce17615e4d34358d0bd00a9fe Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 4 Jul 2023 11:48:11 +0900 Subject: [PATCH] chore(main): document function --- apps/main/src/utils/getAge.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/main/src/utils/getAge.ts b/apps/main/src/utils/getAge.ts index 8c45ff3..ea6c1e6 100644 --- a/apps/main/src/utils/getAge.ts +++ b/apps/main/src/utils/getAge.ts @@ -3,6 +3,9 @@ const birthYear = 2002 const birthMonth = 7 const birthDate = 30 +/** + * Gets developomp's age with decimal precision + */ export default function getAge(): number { const now = Date.now() const date = new Date()