Google Apps Script API
    Preparing search index...

    Represents a calendar that the user owns or is subscribed to.

    interface Calendar {
        createAllDayEvent(
            title: string,
            date: GoogleAppsScript.Base.Date,
        ): CalendarEvent;
        createAllDayEvent(
            title: string,
            startDate: GoogleAppsScript.Base.Date,
            endDate: GoogleAppsScript.Base.Date,
        ): CalendarEvent;
        createAllDayEvent(
            title: string,
            startDate: GoogleAppsScript.Base.Date,
            endDate: GoogleAppsScript.Base.Date,
            options: { [key: string]: any },
        ): CalendarEvent;
        createAllDayEvent(
            title: string,
            date: GoogleAppsScript.Base.Date,
            options: { [key: string]: any },
        ): CalendarEvent;
        createAllDayEventSeries(
            title: string,
            startDate: GoogleAppsScript.Base.Date,
            recurrence: EventRecurrence,
        ): CalendarEventSeries;
        createAllDayEventSeries(
            title: string,
            startDate: GoogleAppsScript.Base.Date,
            recurrence: EventRecurrence,
            options: { [key: string]: any },
        ): CalendarEventSeries;
        createEvent(
            title: string,
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
        ): CalendarEvent;
        createEvent(
            title: string,
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
            options: { [key: string]: any },
        ): CalendarEvent;
        createEventFromDescription(description: string): CalendarEvent;
        createEventSeries(
            title: string,
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
            recurrence: EventRecurrence,
        ): CalendarEventSeries;
        createEventSeries(
            title: string,
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
            recurrence: EventRecurrence,
            options: { [key: string]: any },
        ): CalendarEventSeries;
        deleteCalendar(): void;
        getColor(): string;
        getDescription(): string;
        getEventById(iCalId: string): CalendarEvent;
        getEvents(
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
        ): CalendarEvent[];
        getEvents(
            startTime: GoogleAppsScript.Base.Date,
            endTime: GoogleAppsScript.Base.Date,
            options: { [key: string]: any },
        ): CalendarEvent[];
        getEventSeriesById(iCalId: string): CalendarEventSeries;
        getEventsForDay(date: GoogleAppsScript.Base.Date): CalendarEvent[];
        getEventsForDay(
            date: GoogleAppsScript.Base.Date,
            options: { [key: string]: any },
        ): CalendarEvent[];
        getId(): string;
        getName(): string;
        getTimeZone(): string;
        isHidden(): boolean;
        isMyPrimaryCalendar(): boolean;
        isOwnedByMe(): boolean;
        isSelected(): boolean;
        setColor(color: string): GoogleAppsScript.Calendar.Calendar;
        setDescription(description: string): GoogleAppsScript.Calendar.Calendar;
        setHidden(hidden: boolean): GoogleAppsScript.Calendar.Calendar;
        setName(name: string): GoogleAppsScript.Calendar.Calendar;
        setSelected(selected: boolean): GoogleAppsScript.Calendar.Calendar;
        setTimeZone(timeZone: string): GoogleAppsScript.Calendar.Calendar;
        unsubscribeFromCalendar(): void;
    }
    Index

    Methods