From dacb0cc10538729f3e972d29efacd755f2088531 Mon Sep 17 00:00:00 2001 From: mvillion-syntony Date: Fri, 23 Dec 2016 10:14:01 +0100 Subject: [PATCH] Update JulianDay.m The 6th column of utcTime was not used (!?). --- opensource/JulianDay.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensource/JulianDay.m b/opensource/JulianDay.m index 702a106..5b5f667 100644 --- a/opensource/JulianDay.m +++ b/opensource/JulianDay.m @@ -22,7 +22,7 @@ end y = utcTime(:,1); m = utcTime(:,2); 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 if ( any(y<1901) || any (y>2099) )