This month is very busy, and there is no time to get the "life star astronomical calendar". In fact, the translation has been completed on New Year's Day, but there is no time for sorting and integration, later, I thought that some of my friends may need the original version of the life star astronomical calendar JavaCodeSo I will first release the original translation version. You can modify and encapsulate it as needed.
Because there are a lot of code, I uploaded it to the csdn resource library in the form of files, and I will not post it in the blog.
Note the following points:
1. I have only translated the natural Text of the calendar and the new moon, excluding the eclipse, local food, and the calendar.
2. I made some changes to the final part. I started to use the Spring Festival as the 24-day solar term.
3. The entry methods are yuelic1c and qic1c.
4. The lunardate class is a collection of multiple objects in JS Code.
5. java version code is directly translated from Javascript. Therefore, JavaScript programming styles are used in the code. I think there are hidden risks in the use of many variables. Therefore, it is not ruled out to contain bugs in the case of multithreading.
Java source code:
Http://download.csdn.net/detail/wangpeng047/5039277