BDE 4.14.0 Production release
|
Provide stateless functions for the ISDA Actual/Actual convention.
This component provides a struct
, bbldc::BasicIsdaActualActual
, that serves as a namespace for defining a suite of date-related functions used to compute the day count and the year fraction between two dates as per the ISDA Actual/Actual day-count convention. In this day-count convention, the day count between two dates is exactly the number of days occurring in the time period and the year fraction between two dates is the number of full calendar years between the dates plus front-stub and back-stub adjustments.
This section illustrates intended use of this component.
The following snippets of code illustrate how to use bbldc::BasicIsdaActualActual
methods. First, create two bdlt::Date
variables, d1
and d2
:
Then, compute the day count between the two dates:
Finally, compute the year fraction between the two dates: