function days = month_length_eg_civil ( y, m )

%*****************************************************************************80
%
%% month_length_eg_civil() returns the number of days in an Egyptian Civil month.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, the year.
%
%    integer M, the month.
%
%  Output:
%
%    integer DAYS, the number of days in the month.
%
  if ( m < 1 )
    days = 0;
  elseif ( m <= 12 )
    days = 30;
  elseif ( m == 13 )
    days = 5;
  else
    days = 0;
  end

  return
end
