Class ModifiedHinduSolarBRCalendar
java.lang.Object
org.episteme.social.history.calendars.AlternateCalendar
org.episteme.social.history.calendars.SevenDaysWeek
org.episteme.social.history.calendars.MonthDayYear
org.episteme.social.history.calendars.OldHinduSolarCalendar
org.episteme.social.history.calendars.ModifiedHinduSolarBRCalendar
- All Implemented Interfaces:
Serializable
Modified Hindu Solar calendar using arbitrary-precision arithmetic.
This version uses Rational for precise calculations without
floating-point errors.
* @version 2.1
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.episteme.social.history.calendars.ModifiedHinduBRCalendarDelegate for Hindu astronomical calculations.protected static final intOffset for the solar era (Saka Era).Fields inherited from class OldHinduSolarCalendar
EPOCH, JOVIANPERIOD, MONTHS, SIDEREALYEAR, SOLARMONTHFields inherited from class MonthDayYear
day, month, yearFields inherited from class SevenDaysWeek
DAY_NAMES, FRIDAY, MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAYFields inherited from class AlternateCalendar
JD_EPOCH, rd, unicode -
Constructor Summary
ConstructorsConstructorDescriptionModifiedHinduSolarBRCalendar(int i, int j, int k) ModifiedHinduSolarBRCalendar(long l) ModifiedHinduSolarBRCalendar(AlternateCalendar altcalendar) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the era suffix for display (e.g., "CE", "BCE", "AH").static voidbooleanprecedes(ModifiedHinduSolarBRCalendar modhindusolarbr) voidRecomputes the calendar-specific fields from the current Rata Die.voidRecomputes the Rata Die from the calendar-specific fields.Methods inherited from class OldHinduSolarCalendar
dayCount, getMonths, jovianYear, monthName, set, setMethods inherited from class MonthDayYear
getDay, getMonth, getYear, toStringMethods inherited from class SevenDaysWeek
kDayAfter, kDayBefore, kDayNearest, kDayOnOrAfter, kDayOnOrBefore, nthKDay, weekDay, weekDayNameMethods inherited from class AlternateCalendar
add, amod, difference, difference, floorDiv, fromJD, isAfter, isBefore, mod, mod, subtract, toJD, toJD, toRD
-
Field Details
-
SOLARERA
protected static final int SOLARERAOffset for the solar era (Saka Era).- See Also:
-
mh
protected static org.episteme.social.history.calendars.ModifiedHinduBRCalendar mhDelegate for Hindu astronomical calculations.
-
-
Constructor Details
-
ModifiedHinduSolarBRCalendar
public ModifiedHinduSolarBRCalendar(long l) -
ModifiedHinduSolarBRCalendar
-
ModifiedHinduSolarBRCalendar
public ModifiedHinduSolarBRCalendar() -
ModifiedHinduSolarBRCalendar
public ModifiedHinduSolarBRCalendar(int i, int j, int k)
-
-
Method Details
-
recomputeFromRD
public void recomputeFromRD()Description copied from class:AlternateCalendarRecomputes the calendar-specific fields from the current Rata Die. Called after setting the RD value.- Overrides:
recomputeFromRDin classOldHinduSolarCalendar
-
precedes
-
recomputeRD
public void recomputeRD()Description copied from class:AlternateCalendarRecomputes the Rata Die from the calendar-specific fields. Called after setting individual calendar fields.- Overrides:
recomputeRDin classOldHinduSolarCalendar
-
getSuffix
Description copied from class:MonthDayYearReturns the era suffix for display (e.g., "CE", "BCE", "AH").- Overrides:
getSuffixin classOldHinduSolarCalendar- Returns:
- the suffix string
-
main
-