Obtains an instance of {@code LocalTime} from a temporal object.
!(p)
This obtains a local time based on the specified temporal.
A {@code TemporalAccessor} represents an arbitrary set of date and time information,
which this factory converts to an instance of {@code LocalTime}.
!(p)
The conversion uses the {@link TemporalQueries#localTime()} query, which relies
on extracting the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY} field.
!(p)
This method matches the signature of the functional interface {@link TemporalQuery}
allowing it to be used as a query via method reference, {@code LocalTime.from}.
@param temporal the temporal object to convert, not null
@return the local time, not null
@throws DateTimeException if unable to convert to a {@code LocalTime}
Obtains an instance of {@code LocalTime} from a temporal object. !(p) This obtains a local time based on the specified temporal. A {@code TemporalAccessor} represents an arbitrary set of date and time information, which this factory converts to an instance of {@code LocalTime}. !(p) The conversion uses the {@link TemporalQueries#localTime()} query, which relies on extracting the {@link ChronoField#NANO_OF_DAY NANO_OF_DAY} field. !(p) This method matches the signature of the functional interface {@link TemporalQuery} allowing it to be used as a query via method reference, {@code LocalTime.from}.
@param temporal the temporal object to convert, not null @return the local time, not null @throws DateTimeException if unable to convert to a {@code LocalTime}