days365
Days between dates based on 365-day year
Description
returns
the number of days between NumDays = days365(StartDate,EndDate)StartDate and EndDate based
on a 365-day year. All months contain their actual number of days.
February always contains 28 days.
If EndDate is earlier than StartDate, NumDays is
negative. Under this convention, all months contain 30 days.
Either input argument can contain multiple values, but if so, the other must contain the same
number of values or a single value that applies to all. For example, if
StartDate is an n-row datetime, then
EndDate must be an
N-by-1 vector of integers or a single
integer. NumDays is then an
N-by-1 vector of date numbers.
Examples
Input Arguments
Output Arguments
References
[1] Addendum to Securities Industry Association, Standard Securities Calculation Methods: Fixed Income Securities Formulas for Analytic Measures. Vol. 2, Spring 1995.