Navigation

Operators and Keywords

Function List:

C++ API

datestr.m File Reference


Functions

 if (isempty(dateform)) dateform
endif if (nargin< 1||nargin > 3) print_usage()
endif if (nargin< 2) f
endif if (ischar(date)) t
endif if (iscell(date)||columns(date)!=6) v
 if (columns(date)==6) maxdatevec
endif endfor endif if (isempty(v)) v

Variables

function retval
 names_m = {"J"; "F"; "M"; "A"; "M"; "J"; "J"; "A"; "S"; "O"; "N"; "D"}
 names_d = {"S"; "M"; "T"; "W"; "T"; "F"; "S"}
 date = cell (1)
else v = []
for i
 break

Function Documentation

endif endfor endif if ( isempty(v)   ) 

if ( columns(date = =6  ) 

endif if ( iscell(date)||columns(date)!  = 6  ) 

endif if ( ischar(date  ) 

endif if (  ) 

endif if ( nargin< 1||nargin 3  ) 

if ( isempty(dateform)   ) 


Variable Documentation

break

date = cell (1)

Initial value:

 1:numel (maxdatevec)
        if (any (date(:,i) > maxdatevec(i)) || 
            (i != 6 && any (floor (date(:, i)) != date (:, i))))
          v = datevec (date, p)

names_d = {"S"; "M"; "T"; "W"; "T"; "F"; "S"}

names_m = {"J"; "F"; "M"; "A"; "M"; "J"; "J"; "A"; "S"; "O"; "N"; "D"}

function retval

Initial value:

 datestr (date, f, p)

  persistent dateform names_mmmm names_mmm names_m names_dddd names_ddd names_d

else v = []