MenoData / Time4J

Advanced date, time and interval library for Java with sun/moon-astronomy and calendars like Chinese, Coptic, Ethiopian, French Republican, Hebrew, Hijri, Historic Christian, Indian National, Japanese, Julian, Korean, Minguo, Persian, Thai, Vietnamese
GNU Lesser General Public License v2.1
426 stars 62 forks source link

v3.4/4.3: Introduce calendar families with day calculations #315

Closed MenoData closed 9 years ago

MenoData commented 9 years ago

This is an enhancement to the low-level net.time4j.engine-package and is also an important preparation of other calendar systems which know several variants (for example Hijri calendars or historical calendars).

MenoData commented 9 years ago

A new abstract foundation for calendars which have several variants was created.

New classes CalendarVariant, CalendarDays and CalendarFamily. New method in Chronology with signature getCalendarSystem(String variant). New plus/minus-methods in Calendrical with parameters of type CalendarDays.