Obtains an instance of ChronoZonedDateTime
from a temporal object.
Obtains an instance of ChronoZonedDateTime
from a temporal object.
This creates a zoned date-time based on the specified temporal.
A TemporalAccessor
represents an arbitrary set of date and time information,
which this factory converts to an instance of ChronoZonedDateTime
.
The conversion extracts and combines the chronology, date, time and zone
from the temporal object. The behavior is equivalent to using
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.
This method matches the signature of the functional interface TemporalQuery
allowing it to be used as a query via method reference, ChronoZonedDateTime::from
.
the temporal object to convert, not null
the date-time, not null
DateTimeException
if unable to convert to a { @code ChronoZonedDateTime}
Chronology#zonedDateTime(TemporalAccessor)
Gets a comparator that compares ChronoZonedDateTime
in
time-line order ignoring the chronology.
Gets a comparator that compares ChronoZonedDateTime
in
time-line order ignoring the chronology.
This comparator differs from the comparison in #compareTo
in that it
only compares the underlying instant and not the chronology.
This allows dates in different calendar systems to be compared based
on the position of the date-time on the instant time-line.
The underlying comparison is equivalent to comparing the epoch-second and nano-of-second.
a comparator that compares in time-line order ignoring the chronology
#isEqual
#isBefore
#isAfter