


% -*- texinfo -*-
% @deftypefn {Function File} {} daysact (@var{d1})
% @deftypefnx {Function File} {} daysact (@var{d1}, @var{d2})
% Calculates the number of days between two dates. If the second date is not
% given, calculate the number of days since 1-Jan-0000. The variables @var{d1}
% and @var{d2} can either be strings or an @var{n}-row string matrix. If both
% @var{d1} and @var{d2} are string matrices, then the number of rows must
% match. An example of the use of @code{daysact} is
%
% @example
% @group
% daysact ('01-Jan-2007', ['10-Jan-2007'; '23-Feb-2007'; '23-Jul-2007'])
% @result{} 9
% 53
% 203
% @end group
% @end example
% @seealso{datenum}
% @end deftypefn