Package org.aoju.bus.core.date
Class Solar.Semester
java.lang.Object
org.aoju.bus.core.date.Solar.Semester
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean... args) 构建字符串内容static Solar.Semesterfrom(int year, int month) 通过指定年月获取阳历半年static Solar.Semester通过指定日期获取阳历半年intgetIndex()获取当月是第几半年intgetMonth()获取月获取本半年的月份intgetYear()获取年next(int halfYears) 半年推移
-
Field Details
-
MONTH_COUNT
public static final int MONTH_COUNT半年的月数- See Also:
-
-
Constructor Details
-
Semester
public Semester()默认当月 -
Semester
-
Semester
public Semester(int year, int month) 通过年月初始化- Parameters:
year- 年month- 月
-
-
Method Details
-
from
-
from
通过指定年月获取阳历半年- Parameters:
year- 年month- 月- Returns:
- 阳历半年
-
getYear
public int getYear()获取年- Returns:
- 年
-
getMonth
public int getMonth()获取月- Returns:
- 月
-
getIndex
public int getIndex()获取当月是第几半年- Returns:
- 半年序号,从1开始
-
next
-
getMonths
-
build
-