更新日志格式:Years:{}

This commit is contained in:
2025-01-17 09:26:40 -05:00
parent 03924959e3
commit 3f3c33b29c
@@ -46,7 +46,7 @@ public class JavaPeriodUnitTest {
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());
assertEquals(56, period.plusDays(50)