greg2mjulian.m 269 Bytes
Newer Older
Pierre Cazenave's avatar
Pierre Cazenave committed
1
function [mjulianday] =greg2mjulian(year,month,day,hour,mint,sec)
2 3 4 5 6
% mjulianday = greg2mjulian(yyyy,mm,dd,HH,MM,SS)
%
% Convert the Gregorian dates to Modified Julian dates.
%
% See GREG2JULIAN.
Pierre Cazenave's avatar
Pierre Cazenave committed
7 8

mjulianday = greg2julian(year,month,day,hour,mint,sec)-2400000.5;