java.time.Period.get() 方法示例 java.time.Period.from() 方法示例 java.time.Period.getChronology() 方法示例 java.time.Period.get() 方法示例 package com.codingdict; import java.time.Period; import java.time.temporal.ChronoUnit; public class PeriodDemo { public static void main(String[] args) { Period period = Period.of(10,5,2); System.out.println(period.get(ChronoUnit.DAYS)); } } java.time.Period.from() 方法示例 java.time.Period.getChronology() 方法示例