Changeset 435
- Timestamp:
- 10/2/2008 2:32:44 AM (5 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/Schedule.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/Schedule.cs
r434 r435 228 228 public enum DaysOfWeek 229 229 { 230 SUNDAY = 1 ,231 MONDAY = 1 << 1,232 TUESDAY = 1 << 2,233 WEDNESDAY = 1 << 3,234 THURSDAY = 1 << 4,235 FRIDAY = 1 << 5,236 SATURDAY = 1 << 6230 SUNDAY = 1 << DayOfWeek.Sunday, 231 MONDAY = 1 << DayOfWeek.Monday, 232 TUESDAY = 1 << DayOfWeek.Tuesday, 233 WEDNESDAY = 1 << DayOfWeek.Wednesday, 234 THURSDAY = 1 << DayOfWeek.Thursday, 235 FRIDAY = 1 << DayOfWeek.Friday, 236 SATURDAY = 1 << DayOfWeek.Saturday 237 237 } 238 238 … … 398 398 } 399 399 case ScheduleUnit.MONTHLY: 400 //Increment the month until we are past our current date. 401 nextRun = nextRun.AddMinutes(executionTime.Minute - nextRun.Minute); 402 nextRun = nextRun.AddHours(executionTime.Hour - nextRun.Hour); 400 //Set the next run date to be the day on which the task will run. 403 401 nextRun = nextRun.AddDays(-((int)monthlySchedule - nextRun.Day)); 404 402 while (nextRun < DateTime.Now)
Note: See TracChangeset
for help on using the changeset viewer.
