# slotsOnDay

The slots the control offers on one UTC day (`YYYY-MM-DD`), earliest first:
the whole day, cut at the first and newest slots, and none outside them.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { slotsOnDay } from "@mapcairn/core";
 
function slotsOnDay(control: DateTimeControlDefinition, day: string, now: number): readonly DaySlot[];
```

## Parameters

- `control` (`DateTimeControlDefinition`)
- `day` (`string`)
- `now` (`number`)

## Returns

`readonly DaySlot[]`

## See also

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

Source: [packages/core/src/layers/dateTime.ts:145](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/dateTime.ts#L145)
