Scheduling Google App Script function for specific recurring windows [duplicate]
问题 This question already has answers here : How to create a time-driven trigger that runs from 11 am to 2 pm? (2 answers) Closed 2 years ago . I'm trying to schedule an Apps Script function. I need the email to trigger Mon-Sat every 2 hours starting at 11am-9pm. I've written the following code to create triggers for each day: function createTriggers() { var days = [ScriptApp.WeekDay.MONDAY, ScriptApp.WeekDay.TUESDAY, ScriptApp.WeekDay.WEDNESDAY, ScriptApp.WeekDay.THURSDAY, ScriptApp.WeekDay