public override DayOfWeek GetDayOfWeek(DateTime time) { CheckTicksRange(time.Ticks); return ((DayOfWeek)((int)(time.Ticks / Calendar.TicksPerDay + 1) % 7)); }