Home > freetb4matlab > time > lbusdate.m

lbusdate

PURPOSE ^

%

SYNOPSIS ^

function rd = lbusdate (y, m, hol, wkend)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {b =} lbusdate (year, month)
% @deftypefnx {Function File} {b =} lbusdate (year, month, holiday)
% @deftypefnx {Function File} {b =} lbusdate (year, month, holiday, weekend)
%
% Return the datenum of the last business day of the @var{year} and
% @var{month}.  @var{holiday} is a vector of datenums that defines the
% holidays observed (the holidays function is used if not given).
% @var{weekend} defines the days of the week that should be considered
% weekends; [1 0 0 0 0 0 1] (default) indicates that Sunday and
% Saturday are holidays.
%
% If any of the optional inputs (@var{holiday}, @var{weekend}) are
% empty, then the default is used.
%
% @seealso{holidays, fbusdate, isbusday, busdate}
% @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