| 程序包 | 说明 |
|---|---|
| com.nlf.calendar |
| 限定符和类型 | 方法和说明 |
|---|---|
static SolarMonth |
SolarMonth.fromCalendar(Calendar calendar)
通过指定日历获取阳历月
|
static SolarMonth |
SolarMonth.fromDate(Date date)
通过指定日期获取阳历月
|
static SolarMonth |
SolarMonth.fromYm(int year,
int month)
通过指定年月获取阳历月
|
SolarMonth |
SolarMonth.next(int months)
获取往后推几个月的阳历月,如果要往前推,则月数用负数
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<SolarMonth> |
SolarYear.getMonths()
获取本年的阳历月列表
|
List<SolarMonth> |
SolarSeason.getMonths()
获取本季度的月份
|
List<SolarMonth> |
SolarHalfYear.getMonths()
获取本半年的月份
|
Copyright © 2022. All Rights Reserved.