Obtains an instance of {@code ChronoZonedDateTime} from a temporal object.
!(p)
This creates a zoned date-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 ChronoZonedDateTime}.
!(p)
The conversion extracts and combines the chronology, date, time and zone
from the temporal object. The behavior is equivalent to using
{@link Chronology#zonedDateTime(TemporalAccessor)} with the extracted chronology.
Implementations are permitted to perform optimizations such as accessing
those fields that are equivalent to the relevant objects.
!(p)
This method matches the signature of the functional interface {@link TemporalQuery}
allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}.
@param temporal the temporal object to convert, not null
@return the date-time, not null
@throws DateTimeException if unable to convert to a {@code ChronoZonedDateTime}
@see Chronology#zonedDateTime(TemporalAccessor)
Obtains an instance of {@code ChronoZonedDateTime} from a temporal object. !(p) This creates a zoned date-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 ChronoZonedDateTime}. !(p) The conversion extracts and combines the chronology, date, time and zone from the temporal object. The behavior is equivalent to using {@link Chronology#zonedDateTime(TemporalAccessor)} with the extracted chronology. Implementations are permitted to perform optimizations such as accessing those fields that are equivalent to the relevant objects. !(p) This method matches the signature of the functional interface {@link TemporalQuery} allowing it to be used as a query via method reference, {@code ChronoZonedDateTime::from}.
@param temporal the temporal object to convert, not null @return the date-time, not null @throws DateTimeException if unable to convert to a {@code ChronoZonedDateTime} @see Chronology#zonedDateTime(TemporalAccessor)