Interface DayCountConvention

    • Method Detail

      • getDaycount

        double getDaycount​(LocalDate startDate,
                           LocalDate endDate)
        Return the number of days between startDate and endDate given the specific daycount convention.
        Parameters:
        startDate - The start date given as a LocalDate.
        endDate - The end date given as a LocalDate.
        Returns:
        The number of days within the given period.
      • getDaycountFraction

        double getDaycountFraction​(LocalDate startDate,
                                   LocalDate endDate)
        Return the daycount fraction corresponding to the period from startDate to endDate given the specific daycount convention.
        Parameters:
        startDate - The start date given as a LocalDate.
        endDate - The end date given as a LocalDate.
        Returns:
        The daycount fraction corresponding to the given period.