| Constructor and Description |
|---|
Month()
默认当月
|
Month(Calendar calendar)
通过日历初始化
|
Month(Date date)
通过日期初始化
|
Month(int year,
int month)
通过年月初始化
|
| Modifier and Type | Method and Description |
|---|---|
String |
build(boolean... args)
构建字符串内容
|
static Solar.Month |
from(Calendar calendar)
通过指定日历获取阳历月
|
static Solar.Month |
from(Date date)
通过指定日期获取阳历月
|
static Solar.Month |
from(int year,
int month)
通过指定年月获取阳历月
|
List<Solar> |
getDays()
获取本月的阳历日期列表
|
int |
getMonth()
获取月
|
int |
getYear()
获取年
|
Solar.Month |
next(int months)
获取往后推几个月的阳历月,如果要往前推,则月数用负数
|
public Month()
public Month(Date date)
date - 日期public Month(Calendar calendar)
calendar - 日历public Month(int year,
int month)
year - 年month - 月public static Solar.Month from(Date date)
date - 日期public static Solar.Month from(Calendar calendar)
calendar - 日历public static Solar.Month from(int year, int month)
year - 年month - 月public int getYear()
public int getMonth()
public Solar.Month next(int months)
months - 月数public String build(boolean... args)
args - 可选参数-简化输出Copyright © 2022. All rights reserved.