Google Apps 脚本日历服务:获取周期性(全天)事件的开始日期

Google Apps Script Calendar Service: Get the start date of a recurring (all day) event

我指的是 this question。是否仍然无法在标准模式下检索循环(全天)事件的开始日期(不启用 "Advanced Google services")?

这样做吗:

function findFirstEvent() {
  var cal=CalendarApp.getCalendarById("Calendar Id");
  var startTime=new Date(1850,0,1);
  var endTime=new Date();
  var events=cal.getEvents(startTime, endTime,{search:'Keywords contained in the event or just the title'});
  Logger.log('StartTime: %s, Id: %s',events[0].getStartTime(),events[0].getId());
}