function mjd = jed_to_mjd ( jed )

%*****************************************************************************80
%
%% jed_to_mjd() converts a JED to a modified JED.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 June 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real JED, the Julian Ephemeris Date.
%
%  Output:
%
%    real MJD, the modified Julian Ephemeris Date.
%
  jed_epoch = epoch_to_jed_mjd ( );

  mjd = jed - jed_epoch;

  return
end
