更新日志格式:Years:{}
This commit is contained in:
parent
03924959e3
commit
3f3c33b29c
@ -46,7 +46,7 @@ public class JavaPeriodUnitTest {
|
|||||||
|
|
||||||
Period period = Period.between(startDate, endDate);
|
Period period = Period.between(startDate, endDate);
|
||||||
|
|
||||||
logger.info(String.format("Years:%d months:%d days:%d", period.getYears(), period.getMonths(), period.getDays()));
|
logger.info("Years:{} months:{} days:{}", period.getYears(), period.getMonths(), period.getDays());
|
||||||
|
|
||||||
assertFalse(period.isNegative());
|
assertFalse(period.isNegative());
|
||||||
assertEquals(56, period.plusDays(50)
|
assertEquals(56, period.plusDays(50)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user