
function jd=juliand(gregd);

% function jd=juliand([yyyy mm dd hh mm ss]);
%
% converts Gregorian calendar date to Julian day
% since 12/31/78.  This is done by subtracting
% julian([1978 12 31 0 0 0])=2443874.

jd=julian(gregd)-2443874;
