- All Implemented Interfaces:
- Direct Known Subclasses:
Base class which calculates the day count by calculating the actual number of days between startDate and endDate. A fractional day is rounded to the approximately nearest day.
- Christian Fries
Constructor SummaryConstructorDescriptionCreate an ACT day count convention.
Method SummaryModifier and TypeMethodDescription
static doubleReturns the number of days, between two dates.
doubleReturn the number of days between startDate and endDate given the specific daycount convention.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
DayCountConvention_ACTpublic DayCountConvention_ACT()Create an ACT day count convention.
getDaycountDescription copied from interface:
DayCountConventionReturn the number of days between startDate and endDate given the specific daycount convention.
daysBetweenReturns the number of days, between two dates. A fractional day is rounded to the approximately nearest day. The formula implemented is
(endDate.toEpochDay() - startDate.toEpochDay());
startDate- The start date of the interval.
endDate- The end date of the interval.
- Number of days between startDate and endDate.