object ChronoLocalDate
- Alphabetic
- By Inheritance
- ChronoLocalDate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def from(temporal: TemporalAccessor): ChronoLocalDate
Obtains an instance of
ChronoLocalDate
from a temporal object.Obtains an instance of
ChronoLocalDate
from a temporal object.This obtains a local date based on the specified temporal. A
TemporalAccessor
represents an arbitrary set of date and time information, which this factory converts to an instance ofChronoLocalDate
.The conversion extracts and combines the chronology and the date from the temporal object. The behavior is equivalent to using
Chronology#date(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,ChronoLocalDate::from
.- temporal
the temporal object to convert, not null
- returns
the date, not null
- Exceptions thrown
DateTimeException
if unable to convert to a { @code ChronoLocalDate}- See also
Chronology#date(TemporalAccessor)
- def timeLineOrder: Comparator[ChronoLocalDate]
Gets a comparator that compares
ChronoLocalDate
in time-line order ignoring the chronology.Gets a comparator that compares
ChronoLocalDate
in time-line order ignoring the chronology.This comparator differs from the comparison in
#compareTo
in that it only compares the underlying date and not the chronology. This allows dates in different calendar systems to be compared based on the position of the date on the local time-line. The underlying comparison is equivalent to comparing the epoch-day.- returns
a comparator that compares in time-line order ignoring the chronology
- See also
#isAfter
#isBefore
#isEqual