更新日志格式:Years:{}

This commit is contained in:
YuCheng Hu 2025-01-17 09:26:40 -05:00
parent 03924959e3
commit 3f3c33b29c
Signed by: honeymoose
GPG Key ID: D74AE0B33A8002EC

View File

@ -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)