This commit is contained in:
Looly
2020-07-06 15:18:09 +08:00
parent 2fd5c8c32e
commit 48d67f0859
6 changed files with 112 additions and 47 deletions

View File

@@ -10,7 +10,7 @@ public class BetweenFormaterTest {
@Test
public void formatTest(){
long betweenMs = DateUtil.betweenMs(DateUtil.parse("2017-01-01 22:59:59"), DateUtil.parse("2017-01-02 23:59:58"));
BetweenFormater formater = new BetweenFormater(betweenMs, Level.MILLSECOND, 1);
BetweenFormater formater = new BetweenFormater(betweenMs, Level.MILLISECOND, 1);
Assert.assertEquals(formater.toString(), "1天");
}