[threeten-dev] Handling Leap Month in Chronology subclass
yoshito_umaoka at us.ibm.com
yoshito_umaoka at us.ibm.com
Tue Dec 4 05:48:31 PST 2012
Hello all,
I recently walked through JSR-310 APIs in detail. In general, overall
design looked great and I did not see any major issues.
I have one question about implementing Chronology subclass supporting
Chinese calendar and its variants.
Chinese calendar is a lunisolar calendar system and leap month might be
inserted at certain rule. It differs from Hijrah calendar that insert leap
month at the end of year cycle (13th month).
In ICU project, we found than leap months in Chinese calendar require
extra field to indicate leap month. This is doable with java.util.Calendar
subclass, although additional field is a little bit tricky.
I'm wondering if there is a good way to support such calendar with JSR-310
Chronology without messing up month numbering.
I have a few more minor comments about JSR-310 design and will post them
in a separate message.
Thanks,
Yoshito Umaoka (ICU Project at IBM)
More information about the threeten-dev
mailing list