This constructor is inherited by all subclasses (no implementation in subclass required).
The constructor supports two signatures:
JDNPeriod
(two JDNs)CalendarPeriod
(two calendar dates)This constructor is inherited by all subclasses (no implementation in subclass required).
The constructor supports two signatures:
JDNPeriod
(two JDNs)CalendarPeriod
(two calendar dates)End of a given date in a specific calendar.
Start of a given date in a specific calendar.
Indicates if the date is exact (start and end of the given period are equal).
End of given date as JDN.
Start of given date as JDN.
Constant for the Gregorian calendar.
Constant for the Islamic calendar.
Constant for the Julian calendar.
Supported calendars (to be extended when new subclasses are implemented).
Converts from one calendar into another.
To be extended when new subclasses are added.
calendar to convert to.
instance of target calendar (subclass of JDNConvertibleCalendar
).
Converts the given JDN period to a calendar period and stores it.
This method makes sure that JDNs and calendar dates are in sync. This method has no return value,
it manipulates this.calendarStart
, and this.calendarEnd
instead.
Do not manipulate members this.exactDate
, this.jdnStart
, this.jdnEnd
, this.calendarStart
, and this.calendarEnd
directly,
use this method instead.
the period defined by JDNs to be converted to a calendar period.
Calculates number of days for the month of the given date.
The given date is expected to be of the same calendar as the instance the method is called on.
given date.
number of days in month of given date.
Converts the given calendar date to a new one, shifting the months by the given number.
the given calendar date.
the number of months to shift.
calendar transposed by the given number of months.
Returns the given period as two calendar dates.
period consisting of two calendar dates.
Converts an instance of JDNConvertibleCalendar
to a JDNPeriod
.
period consisting of two JDNs.
Transposes the current period by the given number of days.
the number of days that the current period will be shifted.
Transposes the current period by the given number of months.
This method is not accurate in the arithmetical sense: it tries to fit the given day in the new month. If this is not possible, it takes the last day of the new month (e.g., January 31 will become the last possible day of February).
the number of months that the current period will be shifted.
Transposes the current period by the given number of years.
This method is not accurate in the arithmetical sense: it tries to fit the given day in the month of the new year. If this is not possible, it takes the last day of the new month (e.g., February 29 will become the last possible day of February).
the number of years that the current period will be shifted.
Generated using TypeDoc
Represents a Julian calendar date.