public abstract class DayCountConvention_ACT extends Object implements DayCountConvention
| Constructor and Description |
|---|
DayCountConvention_ACT()
Create an ACT day count convention.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
daysBetween(LocalDate startDate,
LocalDate endDate)
Returns the number of days, between two dates.
|
double |
getDaycount(LocalDate startDate,
LocalDate endDate)
Return the number of days between startDate and endDate given the
specific daycount convention.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDaycountFractionpublic DayCountConvention_ACT()
public double getDaycount(LocalDate startDate, LocalDate endDate)
DayCountConventiongetDaycount in interface DayCountConventionstartDate - The start date given as a LocalDate.endDate - The end date given as a LocalDate.public static double daysBetween(LocalDate startDate, LocalDate endDate)
(endDate.toEpochDay() - startDate.toEpochDay());
startDate - The start date of the interval.endDate - The end date of the interval.Copyright © 2019. All rights reserved.