You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
350 B
12 lines
350 B
package com.fr.schedule; |
|
|
|
import java.util.Calendar; |
|
import com.fr.schedule.base.provider.ExecuteCondition; |
|
|
|
public class ExecuteClass implements ExecuteCondition { |
|
public boolean execute() { |
|
Calendar cal = Calendar.getInstance(); |
|
int dow = cal.get(Calendar.DAY_OF_WEEK);//星期二的dow等于3 |
|
return (dow) == 3; |
|
} |
|
} |