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

mydategpsw_aux ()
function [epoch0, sec_per_week, sec_per_day] = mydategpsw_aux ()
    %epoch0 = mydatenum([1980 01 13]);  % WRONG!
    epoch0 = mydatenum([1980 01 06]);
    % as per <http://facility.unavco.org/data/glossary.html#GPS week>
    sec_per_hour = 60^2;
    sec_per_day  = 24 * sec_per_hour;
    sec_per_week = 7 * sec_per_day;
end

Contact us