describeChosenTime
The date or time a layer is set to, in words for a status line or an announcement: the first date control's day ("11 November 2026") or the first date and time control's UTC slot ("13:00 UTC on 11 November 2026"). Null when the layer has neither, or its value is not a real day or slot. It is a message, to format with the active catalogue.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { describeChosenTime } from "@mapcairn/core";
function describeChosenTime(definition: LayerDefinition, values: ControlValues): Message | null;
Parameters
definition(LayerDefinition)values(ControlValues)
Returns
Message | null