JSFiddle - React, Tailwind, and code Playground
JavaScript
function foo() {
var day = new Date().getDay();
var hours = new Date().getHours();
document.write('day: ' + day + ' Hours : ' + hours + '</br>');
if (day === 0 && hours > 12 && hours < 13){}
// Do what you want here:
}
setInterval(foo, 1000);