Class DiscordianCalendar
java.lang.Object
net.okapia.osid.primordium.calendaring.framework.spi.AbstractCalendarInfo
net.okapia.osid.primordium.calendaring.datetime.alternate.definitions.DiscordianCalendar
- All Implemented Interfaces:
Serializable, CalendarInfo
The Discordian calendar from the Principia Discordia of Greg Hill and
Kerry Thornley (1963-1970): five seasons of seventy-three days -- Chaos,
Discord, Confusion, Bureaucracy, and The Aftermath -- over a five-day
week, with St. Tib's Day inserted between Chaos 59 and 60 in leap years.
A parody calendar, it runs in lock-step with the Gregorian year.
The five seasons run Chaos through The Aftermath over a five-day week;
leaping with the Gregorian calendar, a common year is 365 days and a
leap year 366. Years are counted in the Year of Our Lady of Discord from
1166 BC, so AD 2026 is YOLD 3192; the epoch is 1 January 1166 BC (Julian
Day 1295553).
Its calendar type is
CalendarTypes.DISCORDIAN, and
it is paired with UTCTimeDefinition.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the calendar type.Gets the free-running cycles (the weekday) that ride alongside the division tree.Gets the calendar description.longGets the fixed epoch Julian Day; valid whenCalendarInfo.isEpochFixed().Gets the main (top) division -- the year.getName()Gets the calendar name.booleanTests whether the epoch is a fixed Julian Day.Methods inherited from class AbstractCalendarInfo
getEpochRule, isDeterministic, isEpochDerivedModifier and TypeMethodDescriptionGets the epoch derivation rule; valid whenCalendarInfo.isEpochDerived().booleanTests whether rollover and leaping are predictable -- the condition for converting this calendar to another.booleanTests whether the epoch is derived from a rule.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CalendarInfo
getEpochAbbrev, getEpochName, getPreEpochAbbrev, getPreEpochName, isEpochNamed, startsDayAtStartOfClockModifier and TypeMethodDescriptiondefault DisplayTextGets the short form of the name of the time from the epoch onward, as AD abbreviates Anno Domini; valid whenCalendarInfo.isEpochNamed().default DisplayTextGets the name of the time from the epoch onward, as Anno Domini names it in the Gregorian calendar; valid whenCalendarInfo.isEpochNamed().default DisplayTextGets the short form of the name of the time before the first day of the calendar, as BC abbreviates Before Christ; valid whenCalendarInfo.isEpochNamed().default DisplayTextGets the name of the time before the first day of the calendar, as Before Christ names it in the Gregorian calendar; valid whenCalendarInfo.isEpochNamed().default booleanTests whether the calendar names the time on either side of its epoch.default booleanTests whether this calendar's day begins at the start of the clock -- the zero of the time of day (midnight on a 24-hour clock) -- as opposed to an offset reckoning such as sunset (Hebrew, Islamic) or sunrise.
-
Constructor Details
-
DiscordianCalendar
public DiscordianCalendar()Constructs the Discordian calendar.
-
-
Method Details
-
getName
Description copied from interface:CalendarInfoGets the calendar name.- Specified by:
getNamein interfaceCalendarInfo- Overrides:
getNamein classAbstractCalendarInfo- Returns:
- the name
-
getDescription
Description copied from interface:CalendarInfoGets the calendar description.- Specified by:
getDescriptionin interfaceCalendarInfo- Overrides:
getDescriptionin classAbstractCalendarInfo- Returns:
- the description
-
getCalendarType
Description copied from interface:CalendarInfoGets the calendar type.- Specified by:
getCalendarTypein interfaceCalendarInfo- Overrides:
getCalendarTypein classAbstractCalendarInfo- Returns:
- the calendar type
-
isEpochFixed
public boolean isEpochFixed()Description copied from interface:CalendarInfoTests whether the epoch is a fixed Julian Day.- Specified by:
isEpochFixedin interfaceCalendarInfo- Overrides:
isEpochFixedin classAbstractCalendarInfo- Returns:
trueif the epoch is fixed
-
getEpochAsJulianDay
public long getEpochAsJulianDay()Description copied from interface:CalendarInfoGets the fixed epoch Julian Day; valid whenCalendarInfo.isEpochFixed().- Specified by:
getEpochAsJulianDayin interfaceCalendarInfo- Overrides:
getEpochAsJulianDayin classAbstractCalendarInfo- Returns:
- the epoch Julian Day
-
getMainDivision
Description copied from interface:CalendarInfoGets the main (top) division -- the year.- Specified by:
getMainDivisionin interfaceCalendarInfo- Overrides:
getMainDivisionin classAbstractCalendarInfo- Returns:
- the main division
-
getCycles
Description copied from interface:CalendarInfoGets the free-running cycles (the weekday) that ride alongside the division tree.- Specified by:
getCyclesin interfaceCalendarInfo- Overrides:
getCyclesin classAbstractCalendarInfo- Returns:
- the cycles, or
null
-