1
0
mirror of synced 2026-02-09 06:28:01 +08:00

optimized codes and fix negative month bug @ Lunar.getXiu()

This commit is contained in:
6tail
2019-05-05 15:45:00 +08:00
parent c196e58ec8
commit 6db884b981
16 changed files with 366 additions and 109 deletions

View File

@@ -8,7 +8,7 @@ import com.nlf.calendar.util.SolarUtil;
/**
* 阳历月
*
*
* @author 6tail
*
*/
@@ -45,7 +45,7 @@ public class SolarMonth{
/**
* 通过年月初始化
*
*
* @param year 年
* @param month 月
*/
@@ -87,7 +87,7 @@ public class SolarMonth{
/**
* 获取年
*
*
* @return 年
*/
public int getYear(){
@@ -96,7 +96,7 @@ public class SolarMonth{
/**
* 获取月
*
*
* @return 月
*/
public int getMonth(){
@@ -105,7 +105,7 @@ public class SolarMonth{
/**
* 获取本月的阳历日期列表
*
*
* @return 阳历日期列表
*/
public List<Solar> getDays(){
@@ -118,7 +118,7 @@ public class SolarMonth{
}
return l;
}
/**
* 获取往后推几个月的阳历月,如果要往前推,则月数用负数
* @param months 月数
@@ -131,6 +131,7 @@ public class SolarMonth{
return new SolarMonth(c);
}
@Override
public String toString(){
return year+"-"+month;
}
@@ -138,4 +139,4 @@ public class SolarMonth{
public String toFullString(){
return year+""+month+"";
}
}
}