/// <summary>
/// Overridden. Gives the number of the day in the year.
/// </summary>
/// <param name="time">The
/// <see cref="T:System.DateTime"/> that specifies a
/// date.
/// </param>
/// <returns>An integer representing the day of the year,
/// starting with 1.</returns>
public override int GetDayOfYear(DateTime time)
{
int rd = CCFixed.FromDateTime(time);
int year = CCJulianCalendar.year_from_fixed(rd);
int rd1_1 = CCJulianCalendar.fixed_from_dmy(1, 1, year);
return(rd - rd1_1 + 1);
}