mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add method
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
package cn.hutool.core.date;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class ChineseDateTest {
|
||||
|
||||
@Test
|
||||
@@ -113,4 +116,12 @@ public class ChineseDateTest {
|
||||
final String chineseMonth = springFestival.getChineseMonth();
|
||||
Assert.assertEquals("一月", chineseMonth);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void dayTest(){
|
||||
Date date = DateUtil.parse("1900-01-31");
|
||||
//Date date = DateUtil.parse("2022-02-22","yyyy-MM-dd");
|
||||
ChineseDate chineseDate = new ChineseDate(date);
|
||||
Console.log(chineseDate);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user