|
BDE 4.39.x Production Release
|
Provide stateless functions for the ISDA 1/1 convention.
Provide stateless functions for the ISDA 1/1 convention.
This component provides a struct, bbldc::BasicIsda11, 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 1/1 day-count convention. In this day-count convention, the day count and year fraction between two dates is one if the second date is later than the first, zero if equal, and negative one if the first date is later than the second.
This section illustrates intended use of this component.
The following snippets of code illustrate how to use bbldc::BasicIsda11 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: