fix comment

This commit is contained in:
Looly 2020-04-17 18:09:16 +08:00
parent 4d701be722
commit 5b2aa48fba
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@
* 【crypto 】 SM2支持设置Digest和DSAEncodingissue#829@Github
### Bug修复
* 【json 】 修复解析JSON字符串时配置无法传递问题
* 【json 】 修复解析JSON字符串时配置无法传递问题issue#I1EIDN@Gitee
* 【core 】 修复ServletUtil.readCookieMap空指针问题issue#827@Github
* 【crypto 】 修复SM2中检查密钥导致的问题issue#I1EC47@Gitee
* 【core 】 修复TableMap.isEmpty判断问题

View File

@ -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();