discordian-date
v0.4.1
Published
A module that computes the current Discordian date from the current date.
Downloads
7
Maintainers
Readme
DiscordianDate
Kind: global class
Properties
| Name | Type | Description | | --- | --- | --- | | year | number | The current year. | | season | string | The name of the current season. | | day | number | The current day of the season. | | weekdayIndex | number | The current day of the week as an integer. | | weekday | string | The current day of the week. | | holyday | string | The current holyday, if any. |
- DiscordianDate
- new DiscordianDate(date)
- instance
- .toString() ⇒ string
- static
- .today() ⇒ string
new DiscordianDate(date)
Create a Discordian date corresponding to the passed-in date.
| Param | Type | Description | | --- | --- | --- | | date | Date | A Date object. | | date | string | A date string. | | date | number | An epoch time. |
discordianDate.toString() ⇒ string
Returns the string representation of the Discordian date.
Kind: instance method of DiscordianDate
Returns: string - This object's Discordian date string.
DiscordianDate.today() ⇒ string
Returns the Discordian date string for the present day.
Kind: static method of DiscordianDate
Returns: string - The current Discordian date as a string.