Skip to main content

describeSlot

Words for the slot shown, with its time zone, such as "14:30 to 15:00 UTC on 11 November 2026". Expects a valid slot.

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

Signature​

import { describeSlot } from "@mapcairn/core";

function describeSlot(value: string, stepMinutes: number): Message<"format.timeOnDay">;

Parameters​

  • value (string)
  • stepMinutes (number)

Returns​

Message<"format.timeOnDay">

See also​

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