/// <summary>
/// Overridden. Gives the number of days of the specified
/// year of the given era.
/// </summary>
/// <param name="year">An integer that specifies the year.
/// </param>
/// <param name="era">An ineger that specifies the era.
/// </param>
/// <returns>An integer that gives the number of days of the
/// specified year.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeExceiption">
/// The exception is thrown, if
/// <paramref name="year"/> or <paramref name="era"/> are outside the
/// allowed range.
/// </exception>
public override int GetDaysInYear(int year, int era)
{
M_CheckYE(year, ref era);
int rd1 = CCHebrewCalendar.fixed_from_dmy(1, 7, year);
int rd2 = CCHebrewCalendar.fixed_from_dmy(1, 7, year + 1);
return(rd2 - rd1);
}