private static int DayWithinYear(double time){ return (int)(Day(time) - DayFromYear(YearFromTime(time))); }