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