mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add DateUtil.isSameMonth
This commit is contained in:
parent
c38f9408be
commit
594c181367
@ -15,6 +15,7 @@
|
||||
* 【core 】 改造IndexedComparator,增加InstanceComparator
|
||||
* 【extra 】 增加CglibUtil
|
||||
* 【extra 】 增加Ipv4Util(pr#161@Gitee)
|
||||
* 【extra 】 增加CalendarUtil和DateUtil增加isSameMonth方法(pr#161@Gitee)
|
||||
|
||||
### Bug修复#
|
||||
* 【poi 】 修复ExcelBase.isXlsx方法判断问题(issue#I1S502@Gitee)
|
||||
|
@ -295,6 +295,7 @@ public class CalendarUtil {
|
||||
* @param cal1 日期1
|
||||
* @param cal2 日期2
|
||||
* @return 是否为同一月
|
||||
* @since 5.4.1
|
||||
*/
|
||||
public static boolean isSameMonth(Calendar cal1, Calendar cal2) {
|
||||
if (cal1 == null || cal2 == null) {
|
||||
|
@ -1501,7 +1501,7 @@ public class DateUtil extends CalendarUtil {
|
||||
* @param date1 日期1
|
||||
* @param date2 日期2
|
||||
* @return 是否为同一月
|
||||
* @since 5.4.11
|
||||
* @since 5.4.1
|
||||
*/
|
||||
public static boolean isSameMonth(final Date date1, final Date date2) {
|
||||
if (date1 == null || date2 == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user