Home > freetb4matlab > time > weekday.m

weekday

PURPOSE ^

% Return the day of week as a number in @var{n} and a string in @var{s},

SYNOPSIS ^

function [d, s] = weekday (d, form)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{n}, @var{s}] =} weekday (@var{d}, [@var{form}])
% Return the day of week as a number in @var{n} and a string in @var{s},
% for example @code{[1, 'Sun']}, @code{[2, 'Mon']}, @dots{}, or
% @code{[7, 'Sat']}.
%
% @var{d} is a serial date number or a date string.
%
% If the string @var{form} is given and is @code{'long'}, @var{s} will
% contain the full name of the weekday; otherwise (or if @var{form} is
% @code{'short'}), @var{s} will contain the abbreviated name of the weekday.
% @seealso{datenum, datevec, eomday}
% @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