Code covered by the BSD License  

Highlights from
mydate

mydate

by

 

16 Apr 2011 (Updated )

Augments MATLAB's date/time library for improved handling of epochs and formats commonly used in GPS

mydatestr (num, format)
function str = mydatestr (num, format)
%MYDATESTR: Convert epoch to text character string.
    if (nargin < 2) || isempty(format),  format = 'yymmmdd';  end
    vec = mydatevec(num);
    str = datestr(vec, format);
end

%!test
%! format = 'ddmmmyy';
%! num = mydatenum(datevec(now));
%! str = mydatestr(num, format);
%! %str = mydatestr(num)

Contact us