/** * Create a Weekly task scheduler to run * at 11:59 pm every Saturday * * @return weekly task scheduler */ private TaskScheduler createTaskScheduler() { WeeklyTaskScheduler scheduler = new WeeklyTaskScheduler(); // Set the Day of the Week to be Saturday scheduler.saturday = true; // Set the Time to be 23:59 hours or 11:59 pm scheduler.hour = 23; scheduler.minute = 59; // set the interval to 1 to run the task only // Once every Week at the specified time scheduler.interval = 1; return scheduler; }
/** * Create a Weekly task scheduler to run * at 11:59 pm every Saturday * * @return weekly task scheduler */ private TaskScheduler createTaskScheduler() { WeeklyTaskScheduler scheduler = new WeeklyTaskScheduler(); // Set the Day of the Week to be Saturday scheduler.saturday = true; // Set the Time to be 23:59 hours or 11:59 pm scheduler.hour = 23; scheduler.minute = 59; // set the interval to 1 to run the task only // Once every Week at the specified time scheduler.interval = 1; return(scheduler); }