public interface LetoPeriod
1
, month period type has value: May
and year period type has value: 2010
.
The value is usually a number (day, year). However in some cases there might exist a name that maps to
the number value (name "May" maps to the value 5 for month).
Modifier and Type | Method and Description |
---|---|
long |
getAbsoluteNumber()
The absolute value of the period from the beginning of the calendar (from the calendar EPOCH).
|
java.lang.String |
getActualName()
Return the string representation of the value of this period or null if there is only an integer
representation.
|
long |
getNumber()
Return the number representation of the value of this period.
|
LetoPeriodStructure |
getStructure()
Returns the substructure of this period.
For example the period type "month" in Gregorian calendar, we have 4 possible structures: Month with 28 days - this is the February month in non-leap years Month with 29 days - this is the February month in leap years Month with 30 days Month with 31 days Each of these possible structures is represended as a LetoPeriodStructure that is returned by method getPossibleStructures() in LetoPeriodType. Since this LetoPeriod object represents a specific instance of the period - it refers to exactly one of the possible strucures. |
LetoPeriodType |
getType()
Return the period type this LetoPeriod maps to.
|
long |
startsAtDaysAfterEpoch()
How much days have elapsed after the beginning of the callendar till the beginning of this LetoPeriod.
|
LetoPeriodType getType()
LetoPeriodStructure getStructure()
LetoPeriodType
,
LetoPeriodType.getPossibleStructures()
java.lang.String getActualName()
getNumber()
long getNumber()
getAbsoluteNumber()
. getActualName()
method.getActualName()
long getAbsoluteNumber()
long startsAtDaysAfterEpoch()