public static int GetDayOfYear(System.DateTime time) { int rd = CCFixed.FromDateTime(time); int year = year_from_fixed(rd); int rd1_1 = fixed_from_dmy(1, 1, year); return rd - rd1_1 + 1; }
/// <summary>Returns the day of the year in the specified <see cref="T:System.DateTime" />.</summary> /// <returns>An integer from 1 to 366 that represents the day of the year in the specified <see cref="T:System.DateTime" />.</returns> /// <param name="time">The <see cref="T:System.DateTime" /> to read. </param> public override int GetDayOfYear(DateTime time) { return(CCGregorianCalendar.GetDayOfYear(time)); }