function value = year_length_days_julian ( y )

%*****************************************************************************80
%
%% year_length_days_julian() returns the number of days in a Julian year.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 September 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, the year to be checked.
%
%  Output:
%
%    integer VALUE, the number of days in the year.
%
  if ( y == 0 )
    value = 0;
  elseif ( year_is_leap_julian ( y ) )
    value = 366;
  else
    value = 365;
  end

  return
end
