-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01bc84f
commit 7d6bf0d
Showing
3 changed files
with
92 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* getSeasonString.ts | ||
* author: evan kirkiles | ||
* created on Tue Oct 11 2022 | ||
* 2022 the nobot space, | ||
*/ | ||
|
||
const SEASONS = ['Summer', 'Autumn', 'Winter', 'Spring']; | ||
|
||
/** | ||
* Returns a string of the date in terms of the season | ||
* @param d | ||
* @returns | ||
*/ | ||
export default function getSeasonString(d: Date) { | ||
return `${ | ||
SEASONS[Math.floor((d.getMonth() / 12) * 4) % 4] | ||
} ${d.getFullYear()}`; | ||
} |
7d6bf0d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
abitofpersonalspace – ./
abitofpersonalspace-evankirkiles.vercel.app
abitofpersonalspace-git-main-evankirkiles.vercel.app
abitofpersonalspace.vercel.app
www.abitofpersonal.space
abitofpersonal.space