标签:col public between date epo 计算 time() var toe
@Test public void testTime() { var d1 = LocalDate.of(2021,1,1); var d2 = LocalDate.of(2021,7,2); Period p = Period.between(d1, d2); System.out.println(p.getDays()); System.out.println(d2.toEpochDay() - d1.toEpochDay()); }
标签:col public between date epo 计算 time() var toe
原文地址:https://www.cnblogs.com/smileblogs/p/14962947.html