/**
* @description 判断当前时间是否大于12点
* @return true:中午12点之后; false:12点之前
* @version 1.0
*/
@Override
public boolean decideTimeTwelve(){
Calendar c = Calendar.getInstance();
int currentHour = c.get(Calendar.HOUR_OF_DAY);
return currentHour>=12;
}
时间: 2024-12-10 18:14:51