📜  时刻检查大于当前时间 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:17.185000             🧑  作者: Mango

代码示例2
function check() {
  var now = moment();
  var hourToCheck = (now.day() !== 0)?17:15;
  var dateToCheck = now.hour(hourToCheck).minute(30);
  
  return moment().isAfter(dateToCheck);
}

console.log(check())