public static Int32[] TimesheetAbsence(Period period, Int32[] absenceSchedule, uint dayOrdFrom, uint dayOrdEnds) { int daysInMonth = period.DaysInMonth(); Int32[] monthSchedule = Enumerable.Range(1, daysInMonth). Select((x) => (SecondsFromScheduleSeq(period, absenceSchedule, x, dayOrdFrom, dayOrdEnds))).ToArray(); return(monthSchedule); }
public static Int32[] MonthSchedule(Period period, Int32[] weekSchedule) { int daysInMonth = period.DaysInMonth(); int beginDayCwd = period.WeekDayOfMonth(1); Int32[] monthSchedule = Enumerable.Range(1, daysInMonth). Select((x) => (SecondsFromWeekSchedule(period, weekSchedule, x, beginDayCwd))).ToArray(); return(monthSchedule); }