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
- .toString() ⇒
- static
- .today() ⇒
string
- .today() ⇒
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. |
string
discordianDate.toString() ⇒ Returns the string representation of the Discordian date.
Kind: instance method of DiscordianDate
Returns: string
- This object's Discordian date string.
string
DiscordianDate.today() ⇒ Returns the Discordian date string for the present day.
Kind: static method of DiscordianDate
Returns: string
- The current Discordian date as a string.