% -*- texinfo -*- % @deftypefn {Function File} {mos =} months (startdate, enddate) % @deftypefnx {Function File} {mos =} months (startdate, enddate, endmonthflag) % % Return the number of whole months between @var{startdate} and % @var{enddate}. @var{endmonthflag} defaults to 1. % % If @var{endmonthflag} is true, then if both the @var{startdate} and % the @var{enddate} are end of month dates and @var{enddate} has fewer % days in the month than @var{startdate}, @var{endmonthflag} = 1 treats % @var{enddate} as the end of a month, but @var{endmonthflag} = 0 does % not. % % @seealso{yeardays, yearfrac} % @end deftypefn