Package | Description |
---|---|
cn.hutool.core.date |
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
|
Modifier and Type | Method and Description |
---|---|
static Quarter |
Quarter.fromMonth(int monthValue)
根据给定的月份值返回对应的季度
|
static Quarter |
Quarter.fromMonth(Month month)
根据给定的月份返回对应的季度
|
Quarter |
YearQuarter.getQuarter()
季度
|
static Quarter |
Quarter.of(int intValue)
将 季度int转换为Season枚举对象
|
Quarter |
Quarter.plus(int quarters)
加上指定数量的季度
|
Quarter |
DateTime.quarterEnum()
获得当前日期所属季度
|
static Quarter |
DateUtil.quarterEnum(Date date)
获得指定日期所属季度
|
static Quarter |
Quarter.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Quarter[] |
Quarter.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static YearQuarter |
YearQuarter.of(int year,
Quarter quarter)
根据指定年份与季度,创建
YearQuarter 实例 |
Copyright © 2025. All rights reserved.