Skip to main content

RelativeTime

A time relative to now, so a definition can follow a provider's latency: { minutesAgo: 360 } is six hours ago, rounded down to the control's step.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { RelativeTime } from "@mapcairn/core";

interface RelativeTime

Properties​

minutesAgo​

readonly minutesAgo: number;

How many minutes before now. Zero is now.

Source: packages/core/src/layers/definition.ts:112