Package org.aoju.bus.core.date
Class Solar.Month
java.lang.Object
org.aoju.bus.core.date.Solar.Month
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean... args) 构建字符串内容static Solar.Monthfrom(int year, int month) 通过指定年月获取阳历月static Solar.Month通过指定日期获取阳历月getDays()获取本月的阳历日期列表intgetMonth()获取月getWeeks(int start) 获取本月的阳历周列表intgetYear()获取年next(int months) 获取往后推几个月的阳历月,如果要往前推,则月数用负数
-
Constructor Details
-
Month
public Month()默认当月 -
Month
-
Month
public Month(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:
- 月
-
getDays
-
getWeeks
获取本月的阳历周列表- Parameters:
start- 星期几作为一周的开始,1234560分别代表星期一至星期天- Returns:
- 周列表
-
next
-
build
-