mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
优化DateUtil.format(Date date, String format)接口效率
This commit is contained in:
parent
92869ca289
commit
ab941a6e27
@ -2,12 +2,13 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.29(2024-06-12)
|
# 5.8.29(2024-06-14)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【core 】 DateUtil增加offsetYear方法
|
* 【core 】 DateUtil增加offsetYear方法
|
||||||
* 【core 】 ListUtil增加move方法(issue#3603@Github)
|
* 【core 】 ListUtil增加move方法(issue#3603@Github)
|
||||||
* 【core 】 CollUtil.subtract增加空判定(issue#3605@Github)
|
* 【core 】 CollUtil.subtract增加空判定(issue#3605@Github)
|
||||||
|
* 【core 】 优化DateUtil.format(Date date, String format)接口效率(pr#1226@Gitee)
|
||||||
|
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复AnnotationUtil可能的空指针错误
|
* 【core 】 修复AnnotationUtil可能的空指针错误
|
||||||
|
@ -1210,7 +1210,8 @@ public class DateUtilTest {
|
|||||||
|
|
||||||
//此处仍然不明白,两个for循环实际执行format方法都一样,为什么第1个for时间大致是第2个for的3倍。
|
//此处仍然不明白,两个for循环实际执行format方法都一样,为什么第1个for时间大致是第2个for的3倍。
|
||||||
Assert.assertTrue(formtTime1 > formatTime2);
|
Assert.assertTrue(formtTime1 > formatTime2);
|
||||||
/**
|
|
||||||
|
/*
|
||||||
* System.out.println("t1-t0="+(t1-t0));
|
* System.out.println("t1-t0="+(t1-t0));
|
||||||
* System.out.println("t2-t1="+(t2-t1));
|
* System.out.println("t2-t1="+(t2-t1));
|
||||||
* System.out.println("t3-t2="+(t3-t2));
|
* System.out.println("t3-t2="+(t3-t2));
|
||||||
@ -1221,7 +1222,6 @@ public class DateUtilTest {
|
|||||||
* t2-t1=65
|
* t2-t1=65
|
||||||
* t3-t2=25
|
* t3-t2=25
|
||||||
*/
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user