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/sdk/browser, checked against version 0.2.0.

Signature​

import type { RelativeTime } from "@mapcairn/sdk/browser";

interface RelativeTime

Properties​

minutesAgo​

readonly minutesAgo: number;

How many minutes before now. Zero is now.