mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -276,6 +276,12 @@ public class DateUtilTest {
|
||||
Assert.assertEquals(0, between);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void betweenTest3() {
|
||||
long between = DateUtil.between(DateUtil.parse("2020-03-31 23:59:59"), DateUtil.parse("2020-04-01 00:00:00"), DateUnit.SECOND);
|
||||
Assert.assertEquals(1, between);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void formatChineseDateTest() {
|
||||
String formatChineseDate = DateUtil.formatChineseDate(DateUtil.parse("2018-02-24"), true, false);
|
||||
|
Reference in New Issue
Block a user