ChronoPeriod.get

Gets the value of the requested unit. !(p) The supported units are chronology specific. They will typically be {@link ChronoUnit#YEARS YEARS}, {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. Requesting an unsupported unit will throw an exception.

@param unit the {@code TemporalUnit} for which to return the value @return the long value of the unit @throws DateTimeException if the unit is not supported @throws UnsupportedTemporalTypeException if the unit is not supported

interface ChronoPeriod
override
long
get

Meta