Obtains an instance of {@code Instant} from a temporal object.
!(p)
This obtains an instant 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 Instant}.
!(p)
The conversion extracts the {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS}
and {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} fields.
!(p)
This method matches the signature of the functional interface {@link TemporalQuery}
allowing it to be used as a query via method reference, {@code Instant::from}.
@param temporal the temporal object to convert, not null
@return the instant, not null
@throws DateTimeException if unable to convert to an {@code Instant}
Obtains an instance of {@code Instant} from a temporal object. !(p) This obtains an instant 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 Instant}. !(p) The conversion extracts the {@link ChronoField#INSTANT_SECONDS INSTANT_SECONDS} and {@link ChronoField#NANO_OF_SECOND NANO_OF_SECOND} fields. !(p) This method matches the signature of the functional interface {@link TemporalQuery} allowing it to be used as a query via method reference, {@code Instant::from}.
@param temporal the temporal object to convert, not null @return the instant, not null @throws DateTimeException if unable to convert to an {@code Instant}