private static DateTime FinishHoliday(DateTime dateTime, Holiday holiday) { var remain = holiday.EndTime.Day - DateTimeToDate(dateTime, holiday.IsChineseFestival).Day + 1; return(dateTime.AddDays(remain)); }
private static bool IsInHolidayRange(Holiday holiday, Date date) { return(holiday.StartTime.Month == date.Month && holiday.StartTime.Day <= date.Day && date.Day <= holiday.EndTime.Day); }