public interface Leto
Modifier and Type | Method and Description |
---|---|
LetoPeriod[] |
calculateCalendarPeriods(long days)
Calculate the periods based on the number of days since the leto (calendar) EPOCH.
|
long |
calculateDaysFronStartOfCalendar(long year,
long month,
long day)
This method is the reverse of the prevuos method (calculateCalendarPeriods).
|
LetoPeriodType[] |
getCalendarPeriodTypes() |
java.lang.String |
getDescription()
Get the human readable description of this calendar in the default locale.
|
java.lang.String |
getDescription(java.util.Locale locale)
Long description of this calendar system.
|
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionTranslations()
Get the available translations in human spoken languages of this calendar descripton.
|
java.lang.String |
getName()
Get the name of this calendar in the default locale.
|
java.lang.String |
getName(java.util.Locale locale)
Short name of this calendar system.
|
java.util.Map<java.util.Locale,java.lang.String> |
getNameTranslations()
Get the available translations of the name of this calendar in different human spoken languages.
|
long |
getStartOfCalendarBeforeUnixEpoch()
Get the start of the calendar before unix epoch in days.
|
java.lang.String getName()
java.lang.String getName(java.util.Locale locale)
locale
- The localization to be used.java.util.Map<java.util.Locale,java.lang.String> getNameTranslations()
java.lang.String getDescription()
java.lang.String getDescription(java.util.Locale locale)
locale
- The localization to be used.java.util.Map<java.util.Locale,java.lang.String> getDescriptionTranslations()
long getStartOfCalendarBeforeUnixEpoch()
LetoPeriodType[] getCalendarPeriodTypes()
LetoPeriod[] calculateCalendarPeriods(long days) throws LetoException
days
- Number of days since the calendar starts.LetoException
- If there is some unrecoverable error while calculating the date.long calculateDaysFronStartOfCalendar(long year, long month, long day) throws LetoException
year
- Yearmonth
- Monthday
- DayLetoException
- If something goes wrong.