nongli
公历转农历(1700-3100)
农历是中国最常用的日历之一,具有悠久的历史。 但是农历是非常复杂的,它的大小月及闰月几乎没有任何规律。 本算法解决了 1700-3100 一千年多年公历转农历的问题。
Lunar Calendar
The lunar calendar is one of the most commonly used calendars in China and has a long history. But the lunar calendar is very complex, and its size and leap month almost no law. This algorithm solves the problem of the lunar calendar of 1700-3100 years.
使用示例:
String date = "20170101";
String str = NongLi.getDate(date);
System.out.println(str);
maven地址:
<dependency>
<groupId>com.iceyyy</groupId>
<artifactId>icenongli</artifactId>
<version>2.0</version>
</dependency>