# 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

```ts
import type { DateTimeControlDefinition } from "@mapcairn/core";
 
interface DateTimeControlDefinition extends ControlBase
```

## Properties

### default

```ts
readonly default: DateTimeBound;
```

The moment chosen until the person picks another.

### kind

```ts
readonly kind: "datetime";
```

Tells a date and time control from the other kinds.

### max

```ts
readonly max: DateTimeBound;
```

The latest moment that can be chosen.

### min

```ts
readonly min: DateTimeBound;
```

The earliest moment that can be chosen.

### stepMinutes

```ts
readonly stepMinutes: number;
```

Minutes between slots. A whole number that divides a day, such as 30.

## See also

- [`ControlBase`](https://docs.mapcairn.com/api/core/ControlBase.md)
- [`DateTimeBound`](https://docs.mapcairn.com/api/core/DateTimeBound.md)

Source: [packages/core/src/layers/definition.ts:131](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L131)
