Skip to content

Commit

Permalink
Merge pull request #4 from magcho/update_age
Browse files Browse the repository at this point in the history
feat: 年齢を計算して出すように変えた
  • Loading branch information
magcho authored Sep 22, 2024
2 parents 47de02c + d6f3b49 commit c4fad18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion about.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ IntroMore(){
EDITOR_MESS=" (Shall we use Emacs?) |"
fi

BIRTHDAY_DATETIME=927730800 # 1999-05-27
A_YEAR_TIME=31557600 # 60*60*24*365.25
AGE=$((( $(date +%s) - BIRTHDAY_DATETIME) / A_YEAR_TIME))

echo " | Blog: https://blog.magcho.com |
| GitHub: https://github.com/magcho |
| Name: Suetake Dai |
| Age: 23 |
| Age: $AGE |
| Job: WebFrontend Engineer |
| Keyboard: Lily58 |
| Main editor: Emacs |
Expand Down

0 comments on commit c4fad18

Please sign in to comment.