Code covered by the BSD License  

Highlights from
Calculate Time Interval/ Difference

Calculate Time Interval/ Difference

by

 

01 Nov 2010 (Updated )

To compute time interval, taking into account leap days that are subsumed within that interval.

adjustUnits2(upperUnit, lowerUnit, base)
function [ upperUnit, lowerUnit ] = adjustUnits2(upperUnit, lowerUnit, base)
%ADJUSTUNITS2 

while (lowerUnit >= base) 
    lowerUnit = lowerUnit - base;
    upperUnit = upperUnit + 1;
end

end

Contact us