public interface CalendarDate extends Temporal<CalendarDate>
Represents a general calendar date.
| Modifier and Type | Method and Description |
|---|---|
long |
getDaysSinceEpochUTC()
Counts the elapsed days since UTC epoch.
|
default <T extends CalendarVariant<T>> |
transform(CalendarFamily<T> target,
String variant)
Converts this calendar date to the given target chronology based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends CalendarVariant<T>> |
transform(CalendarFamily<T> target,
VariantSource variantSource)
Converts this calendar date to the given target chronology based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends Calendrical<?,T>> |
transform(Chronology<T> target)
Converts this calendar date to the given target chronology based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends Calendrical<?,T>> |
transform(Class<T> target)
Converts this calendar date to the given target type based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends CalendarVariant<T>> |
transform(Class<T> target,
String variant)
Converts this calendar date to the given target type based on
the count of days relative to UTC epoch [1972-01-01].
|
default <T extends CalendarVariant<T>> |
transform(Class<T> target,
VariantSource variantSource)
Converts this calendar date to the given target type based on
the count of days relative to UTC epoch [1972-01-01].
|
isAfter, isAfterAll, isBefore, isBeforeAll, isSimultaneouslong getDaysSinceEpochUTC()
Counts the elapsed days since UTC epoch.
EpochDays.UTCdefault <T extends Calendrical<?,T>> T transform(Chronology<T> target)
Converts this calendar date to the given target chronology based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronology this date shall be converted toArithmeticException - in case of numerical overflowdefault <T extends CalendarVariant<T>> T transform(CalendarFamily<T> target, String variant)
Converts this calendar date to the given target chronology based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronology this date shall be converted tovariant - desired calendar variantChronoException - if given variant is not recognizedArithmeticException - in case of numerical overflowdefault <T extends CalendarVariant<T>> T transform(CalendarFamily<T> target, VariantSource variantSource)
Converts this calendar date to the given target chronology based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronology this date shall be converted tovariantSource - source of desired calendar variantChronoException - if the variant of given source is not recognizedArithmeticException - in case of numerical overflowdefault <T extends Calendrical<?,T>> T transform(Class<T> target)
Converts this calendar date to the given target type based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronological type this date shall be converted toIllegalArgumentException - if the target class does not have any chronologyArithmeticException - in case of numerical overflowdefault <T extends CalendarVariant<T>> T transform(Class<T> target, String variant)
Converts this calendar date to the given target type based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronological type this date shall be converted tovariant - desired calendar variantChronoException - if given variant is not recognizedIllegalArgumentException - if the target class does not have any chronologyArithmeticException - in case of numerical overflowdefault <T extends CalendarVariant<T>> T transform(Class<T> target, VariantSource variantSource)
Converts this calendar date to the given target type based on the count of days relative to UTC epoch [1972-01-01].
The conversion occurs on the local timeline at noon. This reference time ensures that all date types remain convertible even if a calendar system defines dates not starting at midnight.
T - generic target date typetarget - chronological type this date shall be converted tovariantSource - source of desired calendar variantChronoException - if the variant of given source is not recognizedIllegalArgumentException - if the target class does not have any chronologyArithmeticException - in case of numerical overflowCopyright © 2014–2017. All rights reserved.