D - generic type of calendar date (subtype of Calendrical or CalendarVariant)public interface CalendarSystem<D>
Represents a calendar system which can map a calendar date to a day number corresponding to the count of days elapsed since UTC epoch [1972-01-01].
Specification: All implementations must be immutable.
Calendrical,
CalendarVariant,
EpochDays| Modifier and Type | Method and Description |
|---|---|
java.util.List<CalendarEra> |
getEras()
Yields an enumeration of valid eras in ascending order.
|
long |
getMaximumSinceUTC()
Gets the maximum day number as count of days since the
introduction of UTC [1972-01-01].
|
long |
getMinimumSinceUTC()
Gets the minimum day number as count of days since the
introduction of UTC [1972-01-01].
|
long |
transform(D date)
Transforms given calendar date to a day number on the local
time line at the reference time of noon.
|
D |
transform(long utcDays)
Transforms given day number to a calendar date on the local
time line at the reference time of noon.
|
D transform(long utcDays)
Transforms given day number to a calendar date on the local time line at the reference time of noon.
utcDays - count of days since UTC epoch [1972-01-01]java.lang.IllegalArgumentException - if the argument is out of rangelong transform(D date)
Transforms given calendar date to a day number on the local time line at the reference time of noon.
date - calendar date to be transformedjava.lang.IllegalArgumentException - if the argument is not consistent with this calendar systemlong getMinimumSinceUTC()
Gets the minimum day number as count of days since the introduction of UTC [1972-01-01].
getMaximumSinceUTC()long getMaximumSinceUTC()
Gets the maximum day number as count of days since the introduction of UTC [1972-01-01].
getMinimumSinceUTC()java.util.List<CalendarEra> getEras()
Yields an enumeration of valid eras in ascending order.
All ISO-systems only yield an empty list. A gregorian calendar
defines the eras BC and AD related to Jesu birth
however.