Class JulianDayCalendar
java.lang.Object
net.okapia.osid.primordium.calendaring.framework.spi.AbstractCalendarInfo
net.okapia.osid.primordium.calendaring.framework.spi.AbstractDayCountCalendar
net.okapia.osid.primordium.calendaring.datetime.counting.definitions.JulianDayCalendar
- All Implemented Interfaces:
Serializable, CalendarInfo
The Julian Day number: a continuous count of days used throughout
astronomy and chronology, devised by Joseph Justus Scaliger in 1583 and
named for his father, Julius Caesar Scaliger. It is a counting calendar
-- each unit is one day, with no months or weeks. Day zero begins at
noon Universal Time on 1 January 4713 BC in the proleptic Julian
calendar (Julian Day 0).
Its calendar type is
CountingCalendarTypes.JULIAN_DAY,
and it is paired with NoTimeSystemTimeDefinition.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the calendar type.Gets the calendar description.longGets the fixed epoch Julian Day; valid whenCalendarInfo.isEpochFixed().getName()Gets the calendar name.Methods inherited from class AbstractDayCountCalendar
getMainDivision, isEpochFixedModifier and TypeMethodDescriptionGets the main (top) division -- the year.booleanTests whether the epoch is a fixed Julian Day.Methods inherited from class AbstractCalendarInfo
getCycles, getEpochRule, isDeterministic, isEpochDerivedModifier and TypeMethodDescriptionGets the free-running cycles (the weekday) that ride alongside the division tree.Gets 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
-
JulianDayCalendar
public JulianDayCalendar()Constructs a newJulianDayCalendar.
-
-
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
-
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
-