Package org.aoju.bus.core.date
Class Solar.Quarter
java.lang.Object
org.aoju.bus.core.date.Solar.Quarter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean... args) 构建字符串内容static Solar.Quarterfrom(int year, int month) 通过指定年月获取阳历季度static Solar.Quarter通过指定日期获取阳历季度intgetIndex()获取当月是第几季度intgetMonth()获取月获取本季度的月份intgetYear()获取年next(int seasons) 季度推移
-
Field Details
-
MONTH_COUNT
public static final int MONTH_COUNT一个季度的月数- See Also:
-
-
Constructor Details
-
Quarter
public Quarter()默认当月 -
Quarter
-
Quarter
public Quarter(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
-