| Modifier and Type | Field and Description |
|---|---|
static int |
MONTH_COUNT
半年的月数
|
| Constructor and Description |
|---|
Semester()
默认当月
|
Semester(Calendar calendar)
通过日历初始化
|
Semester(Date date)
通过日期初始化
|
Semester(int year,
int month)
通过年月初始化
|
| Modifier and Type | Method and Description |
|---|---|
String |
build(boolean... args)
构建字符串内容
|
static Solar.Semester |
from(Calendar calendar)
通过指定日历获取阳历半年
|
static Solar.Semester |
from(Date date)
通过指定日期获取阳历半年
|
static Solar.Semester |
from(int year,
int month)
通过指定年月获取阳历半年
|
int |
getIndex()
获取当月是第几半年
|
int |
getMonth()
获取月
|
List<Solar.Month> |
getMonths()
获取本半年的月份
|
int |
getYear()
获取年
|
Solar.Semester |
next(int halfYears)
半年推移
|
public static final int MONTH_COUNT
public Semester()
public Semester(Date date)
date - 日期public Semester(Calendar calendar)
calendar - 日历public Semester(int year,
int month)
year - 年month - 月public static Solar.Semester from(Date date)
date - 日期public static Solar.Semester from(Calendar calendar)
calendar - 日历public static Solar.Semester from(int year, int month)
year - 年month - 月public int getYear()
public int getMonth()
public int getIndex()
public Solar.Semester next(int halfYears)
halfYears - 推移的半年数,负数为倒推public List<Solar.Month> getMonths()
public String build(boolean... args)
args - 可选参数-简化输出Copyright © 2022. All rights reserved.