mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add class
This commit is contained in:
@@ -1756,7 +1756,7 @@ public class DateUtil extends CalendarUtil {
|
||||
* @return 是否闰年
|
||||
*/
|
||||
public static boolean isLeapYear(int year) {
|
||||
return new GregorianCalendar().isLeapYear(year);
|
||||
return Year.isLeap(year);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user