NSIslamicCalendar and NSIslamicCivilCalendar

匆匆过客 提交于 2019-12-07 10:03:36

问题


What is the difference between NSIslamicCalendar and NSIslamicCivilCalendar?


回答1:


The civil Hajiri calendar is predictable. You can know, today, how many days will elapse before the first day of the next month. This is not true for the religious calendar. It is based on being able to observe the new moon. No visible new moon means the new month has not started. Computers and coders cannot deal with that very well.

Since you are coding, if you need future dates, you will have to use the civil calendar.




回答2:


The only thing that I could understand from documentations is that the Islamic one is a religious/astronomical calendar while the Islamic-civil is a fixed-cycle civil calendar.

For more information see the below link:

http://icu-project.org/apiref/icu4j/com/ibm/icu/util/IslamicCalendar.html



来源:https://stackoverflow.com/questions/8893442/nsislamiccalendar-and-nsislamiccivilcalendar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!