Skip to main content

resolveDateBound

Turns a date bound into YYYY-MM-DD, counting relative days back from now in UTC.

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

Signature​

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

function resolveDateBound(bound: DateBound, now: number): string;

Parameters​

  • bound (DateBound)
  • now (number)

Returns​

string

See also​

Source: packages/core/src/layers/controls.ts:36