discordian-date

0.4.1 • Public • Published

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.

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.

Package Sidebar

Install

npm i discordian-date

Weekly Downloads

3

Version

0.4.1

License

MIT

Last publish

Collaborators

  • srhoulam