在我的学生出勤项目中,每天从上午9.45到上午10.30之间,老师应标记出学生的出勤情况。
因此,老师应该只能在该时间标记出勤。其余时间应禁用学生列表。
在这里,我面临一个问题,发现服务器当前时间每天都在9.45am到10.30am之间达到。
$now = time();
$today = strtotime('9:50');
//do not know how to find current date with time interval 9.45am and 10.30am
if (($today - $now) > 0) {
$status = "disabled";
} else {
$status = "active";
}
请帮助我找到解决方案。
慕田峪4524236