What does Calendar.UNDECIMBER do?

后端 未结 2 1916
醉话见心
醉话见心 2021-02-15 13:56

There is a constant in the Calendar class called: UNDECIMBER. It describes the 13th month.

Is there a useful purpose for this constant? In Wiki

2条回答
  •  佛祖请我去吃肉
    2021-02-15 14:07

    The Calendar.UNDECIMBER is an additional constant in the Calendar class that is not typically used in the widely used Gregorian Calendar but certain Lunar calendars use a 13th month. That's the purpose of this field.

    Refer to the Java Docs below:

    https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#UNDECIMBER

    Wikipedia article for this:

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

    There is also a mention of a 14th month - Duodecimber in the wiki. Unfortunately, Java does not (yet) support that.


    Hope this helps!

提交回复
热议问题