WebCab Bonds for .NET v2.01

BusinessCalendarTimeConversions.YearsBetweenAsDoubleArray Method (DateTime, DateTime[], BusinessCalendar)

Calculates the number of years between a fixed date and each of the members of an array of dates.

public static double[] YearsBetweenAsDoubleArray(
   DateTime startDate,
   DateTime[] endDates,
   BusinessCalendar businessCalendar
);

Parameters

startDate
the start date which determines the start of all the periods considered.
endDates
an array of dates which corresponds to the end date of each of the periods being considered.
businessCalendar
the business calendar used, if no business calendar is specified then the default business calendar is used.

Remarks

This method returns an array of double values where the first term of the array corresponds to the length in years expressed as a double between the `startDate' and the first element of the array of dates `endDates'. The second term of the array which is returned corresponds to the number of years between the `startDate' and the second element of the array of dates `endDates'.

See Also

BusinessCalendarTimeConversions Class | WebCab.BusinessCalendar.Cities Namespace | BusinessCalendarTimeConversions.YearsBetweenAsDoubleArray Overload List