Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OneTimeWindow

import type { OneTimeWindow } from "https://googleapis.deno.dev/v1/clouddeploy:v1.ts";

One-time window within which actions are restricted. For example, blocking actions over New Year's Eve from December 31st at 5pm to January 1st at 9am.

interface OneTimeWindow {
endDate?: Date;
endTime?: TimeOfDay;
startDate?: Date;
startTime?: TimeOfDay;
}

§Properties

§
endDate?: Date
[src]

Required. End date.

§
endTime?: TimeOfDay
[src]

Required. End time (exclusive). You may use 24:00 for the end of the day.

§
startDate?: Date
[src]

Required. Start date.

§
startTime?: TimeOfDay
[src]

Required. Start time (inclusive). Use 00:00 for the beginning of the day.