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
440 stars 64 forks source link

Traditional Chinese calendar #396

Closed MenoData closed 6 years ago

MenoData commented 8 years ago

This is a lunisolar calendar, see also https://en.wikipedia.org/wiki/Chinese_calendar. To make an implementation possible, an astronomical module is required.

Other links:

http://www.math.nus.edu.sg/aslaksen/calendar/chinese.shtml http://www.math.nus.edu.sg/aslaksen/calendar/cal.pdf http://www.hermetic.ch/cal_stud/chinese_cal.htm http://www.hermetic.ch/chcal/chcal.htm http://www.hermetic.ch/cal_stud/ch_year.htm http://www.tondering.dk/claus/cal/chinese.php http://www.herongyang.com/year/Program-Chinese-Calendar-Program-in-Java.html http://www.chinasage.info/chinesecalendar.htm https://www.chinesegenderchart.info/leapmonth.php

MenoData commented 8 years ago

This ICU-document shows the current status in CLDR and some limitations of CLDR/ICU:

http://cldr.unicode.org/development/development-process/design-proposals/chinese-calendar-support

For comparison, see also:

http://bugs.icu-project.org/trac/ticket/10893

http://bugs.icu-project.org/trac/ticket/12019

http://bugs.icu-project.org/trac/ticket/13195

MenoData commented 6 years ago

About era names bound to emperors, this site might be interesting for the period 1645-1912 (I am going to support this calendar only after 1645 when the calendar rules had been fixed):

https://en.wikipedia.org/wiki/List_of_emperors_of_the_Qing_dynasty

Actually, the Chinese calendar does not use eras any longer so such a property can only be optional.

MenoData commented 6 years ago

Useful for test comparisons: http://www.hko.gov.hk/gts/time/conversion.htm