java.time.Period.equals() 方法示例 java.time.Period.between() 方法示例 java.time.Period.from() 方法示例 java.time.Period.equals() 方法示例 package com.codingdict; import java.time.Period; public class PeriodDemo { public static void main(String[] args) { Period period = Period.ofDays(5); Period period1 = Period.ofDays(6); System.out.println(period.equals(period1)); } } java.time.Period.between() 方法示例 java.time.Period.from() 方法示例