Package org.aoju.bus.core.date
Class Solar.Month
java.lang.Object
org.aoju.bus.core.date.Solar.Month
- Enclosing class:
- Solar
阳历月
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean... args) 构建字符串内容static Solar.Monthfrom(int year, int month) 通过指定年月获取阳历月static Solar.Month通过指定日历获取阳历月static Solar.Month通过指定日期获取阳历月getDays()获取本月的阳历日期列表intgetMonth()获取月intgetYear()获取年next(int months) 获取往后推几个月的阳历月,如果要往前推,则月数用负数
-
Constructor Details
-
Month
public Month()默认当月 -
Month
通过日期初始化- Parameters:
date- 日期
-
Month
通过日历初始化- Parameters:
calendar- 日历
-
Month
public Month(int year, int month) 通过年月初始化- Parameters:
year- 年month- 月
-
-
Method Details
-
from
通过指定日期获取阳历月- Parameters:
date- 日期- Returns:
- 阳历月
-
from
通过指定日历获取阳历月- Parameters:
calendar- 日历- Returns:
- 阳历月
-
from
通过指定年月获取阳历月- Parameters:
year- 年month- 月- Returns:
- 阳历月
-
getYear
public int getYear()获取年- Returns:
- 年
-
getMonth
public int getMonth()获取月- Returns:
- 月
-
getDays
获取本月的阳历日期列表- Returns:
- 阳历日期列表
-
next
获取往后推几个月的阳历月,如果要往前推,则月数用负数- Parameters:
months- 月数- Returns:
- 阳历月
-
build
构建字符串内容- Parameters:
args- 可选参数-简化输出- Returns:
- 字符串内容
-