/// <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"/> is outside the allowed range.
/// </exception>
public override int GetDaysInYear(int year, int era)
{
M_CheckYE(year, ref era);
int rd1 = CCJulianCalendar.fixed_from_dmy(1, 1, year);
int rd2 = CCJulianCalendar.fixed_from_dmy(1, 1, year + 1);
return(rd2 - rd1);
}