function jed = datenum_to_jed ( dn )

%*****************************************************************************80
%
%% datenum_to_jed() converts a MATLAB DATENUM to a JED.
%
%  Discussion:
%
%    The MATLAB "datenum" function accepts a string defining
%    a date and returns a MATLAB date number:
%
%      dn = datenum ( 'Aug 17 1939' )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 December 2017
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real DN, a MATLAB date number.
%
%  Output:
%
%    real JED, the Julian Ephemeris Date.
%
  jed = dn + epoch_to_jed_datenum ( );

  return
end
