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

mydatemjdi (mjd)
function [epoch, jd] = mydatemjdi (mjd)
%MYDATEMJDI: Convert from (decimal) modified Julian day (to epoch internal format).
    jd = mjd + 2400000.5;
    epoch = mydatejdi (jd);
end

%!test
%! num = mydatenum([1858 11 17  0 0 0]);
%! num2 = mydatemjdi(0);
%! myassert (num2, num)

Contact us