📅  最后修改于: 2022-03-11 15:01:44.595000             🧑  作者: Mango
var objDate = new Date();
var hours = objDate.getHours();
if(hours >= 12 && hours <= 21){
document.write('We Are Closed');
}
else{
document.write('We are Open');
}