mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix comment
This commit is contained in:
parent
4d701be722
commit
5b2aa48fba
@ -18,7 +18,7 @@
|
||||
* 【crypto 】 SM2支持设置Digest和DSAEncoding(issue#829@Github)
|
||||
|
||||
### Bug修复
|
||||
* 【json 】 修复解析JSON字符串时配置无法传递问题
|
||||
* 【json 】 修复解析JSON字符串时配置无法传递问题(issue#I1EIDN@Gitee)
|
||||
* 【core 】 修复ServletUtil.readCookieMap空指针问题(issue#827@Github)
|
||||
* 【crypto 】 修复SM2中检查密钥导致的问题(issue#I1EC47@Gitee)
|
||||
* 【core 】 修复TableMap.isEmpty判断问题
|
||||
|
@ -280,7 +280,7 @@ public class CalendarUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得指定日期区间内的年份和季节<br>
|
||||
* 获得指定日期区间内的年份和季度<br>
|
||||
*
|
||||
* @param startDate 起始日期(包含)
|
||||
* @param endDate 结束日期(包含)
|
||||
@ -302,10 +302,11 @@ public class CalendarUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得指定日期年份和季节<br>
|
||||
* 获得指定日期年份和季度<br>
|
||||
* 格式:[20131]表示2013年第一季度
|
||||
*
|
||||
* @param cal 日期
|
||||
* @return 年和季度,格式类似于20131
|
||||
*/
|
||||
public static String yearAndQuarter(Calendar cal) {
|
||||
return StrUtil.builder().append(cal.get(Calendar.YEAR)).append(cal.get(Calendar.MONTH) / 3 + 1).toString();
|
||||
|
Loading…
Reference in New Issue
Block a user