DateTimeControlDefinition
A UTC date and a time of day on a fixed step, such as the half hours of a
product the provider names by timestamp. Its value is the slot's start as
YYYY-MM-DDtHHMM (lowercase t, so it fits a permalink); a URL template
receives it as an ISO instant, YYYY-MM-DDTHH:MM:SSZ. Only slots between
min and max are offered, so max set to the provider's latency keeps
slots that are not out yet off the list.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { DateTimeControlDefinition } from "@mapcairn/core";
interface DateTimeControlDefinition extends ControlBase
Properties
default
readonly default: DateTimeBound;
The moment chosen until the person picks another.
kind
readonly kind: "datetime";
Tells a date and time control from the other kinds.
max
readonly max: DateTimeBound;
The latest moment that can be chosen.
min
readonly min: DateTimeBound;
The earliest moment that can be chosen.
stepMinutes
readonly stepMinutes: number;
Minutes between slots. A whole number that divides a day, such as 30.