新增排程页面重做
This commit is contained in:
@@ -974,4 +974,18 @@ public class ZYTimeUtils {
|
||||
}
|
||||
}
|
||||
|
||||
private static final String[] WEEK_NAMES = {"周一", "周二", "周三", "周四", "周五", "周六", "周日"};
|
||||
|
||||
/**
|
||||
* 根据星期索引获取星期名称
|
||||
* @param weekday 星期索引,0=周一,1=周二,...,6=周日
|
||||
* @return 对应的星期名称
|
||||
*/
|
||||
public static String getWeekName(int weekday) {
|
||||
if (weekday >= 0 && weekday < 7) {
|
||||
return WEEK_NAMES[weekday];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user