Home > freetb4matlab > time > daysact.m

daysact

PURPOSE ^

% Calculates the number of days between two dates. If the second date is not

SYNOPSIS ^

function days = daysact (d1, d2)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003