Home > freetb4matlab > time > months.m

months

PURPOSE ^

%

SYNOPSIS ^

function mos = months (startdate, enddate, endmonthflag)

DESCRIPTION ^

% -*- 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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003