Skip to main content

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​

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​

Source: packages/core/src/layers/dateTime.ts:145