Skip to content

months

matlab_compat · scripts/matlab_compat/wave4/months.m

: mm = months (d1, d2)
: mm = months (d1, d2, eom)

Number of whole months between dates d1 and d2.

eom is 1 (default) or 0 and controls whether an end-of-month end date counts as a whole extra month. A single numeric argument raises MATLAB:months:oneInputSuggestCalMonths (use calmonths to build calendar durations).