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

mydatedoywi (doyw, wyear)
function [num, wyear] = mydatedoywi (doyw, wyear)
%MYDATEDOYWI: Convert from (decimal) day of water-year (to epoch internal format).
    [wyear, num0] = mydatedoywi_aux (wyear);
    myassert(length(wyear)==length(doyw) || isscalar(wyear))
    num = num0 + mydatedayi(doyw);
end

%!test
%! % mydatedoywi()
%! test mydatedoyw

%!test
%! myassert(mydatedoywi(1, '2009-2010'), mydatedoywi(1, 2010))

Contact us