function value = year_is_leap_ethiopian ( y )

%*****************************************************************************80
%
%% year_is_leap_ethiopian() returns TRUE if the Ethiopian year was a leap year.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 March 2013
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Nachum Dershowitz, Edward Reingold,
%    Calendrical Calculations,
%    Cambridge, 1997, page 58.
%
%  Input:
%
%    integer Y, the year.
%
%  Output:
%
%    Output, logical VALUE, TRUE if the year was a leap year.
%
  if ( y <= 0 )
    value = 0;
    return
  end

  if ( mod ( y, 4 ) == 3 )
    value = 1;
  else
    value = 0;
  end

  return
end
