Browse Source

Merge pull request #3 from mvillion-syntony/patch-1

Update JulianDay.m
pull/8/head
mohammedkhider 7 years ago committed by GitHub
parent
commit
853984a5e6
  1. 2
      opensource/JulianDay.m

2
opensource/JulianDay.m

@ -22,7 +22,7 @@ end
y = utcTime(:,1); y = utcTime(:,1);
m = utcTime(:,2); m = utcTime(:,2);
d = utcTime(:,3); d = utcTime(:,3);
h = utcTime(:,4) + utcTime(:,5)/60 + utcTime(:,5)/3600; h = utcTime(:,4) + utcTime(:,5)/60 + utcTime(:,6)/3600;
%check that date is in valid range %check that date is in valid range
if ( any(y<1901) || any (y>2099) ) if ( any(y<1901) || any (y>2099) )

Loading…
Cancel
Save