Package | Description |
---|---|
cn.hutool.core.date |
日期封装,日期的核心为DateTime类,DateUtil提供日期操作的入口
|
Modifier and Type | Method and Description |
---|---|
Month |
YearQuarter.firstMonth()
该季度第一个月
|
Month |
Quarter.firstMonth()
该季度的第一个月
|
Month |
YearQuarter.lastMonth()
该季度的最后一个月
|
Month |
Quarter.lastMonth()
该季度最后一个月
|
Month |
DateTime.monthEnum()
获得月份
|
static Month |
DateUtil.monthEnum(Date date)
获得月份
|
static Month |
Month.of(int calendarMonthIntValue)
|
static Month |
Month.of(Month month)
Month 转换为Month对象 |
static Month |
Month.of(String name)
解析别名为Month对象,别名如:jan或者JANUARY,不区分大小写
|
static Month |
DateUtil.thisMonthEnum() |
static Month |
Month.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Month[] |
Month.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Quarter |
Quarter.fromMonth(Month month)
根据给定的月份返回对应的季度
|
static String |
Zodiac.getZodiac(Month month,
int day)
通过生日计算星座
|
Copyright © 2025. All rights reserved.