Google Apps Script API
    Preparing search index...

    A question item that allows the respondent to indicate a time of day. Items can be accessed or created from a Form. When used in a quiz, these items are graded.

    // Open a form by ID and add a new time item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addTimeItem();
    item.setTitle('What time do you usually wake up in the morning?');
    
    interface TimeItem {
        createResponse(hour: number, minute: number): ItemResponse;
        duplicate(): TimeItem;
        getGeneralFeedback(): QuizFeedback;
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getPoints(): number;
        getTitle(): string;
        getType(): ItemType;
        isRequired(): boolean;
        setGeneralFeedback(feedback: QuizFeedback): TimeItem;
        setHelpText(text: string): TimeItem;
        setPoints(points: number): TimeItem;
        setRequired(enabled: boolean): TimeItem;
        setTitle(title: string): TimeItem;
    }
    Index

    Methods