Variable ViraRelativeTimeConst
ViraRelativeTime: DeclarativeElementDefinition<
"vira-relative-time",
{ time: Readonly<FullDate> } & PartialWithUndefined<
{
showAbsoluteTime: boolean;
timezone: Timezone;
updateInterval: Readonly<
_RequireAtLeastOne<
RequiredAndNotNull<
Partial<Record<DurationUnit, number | undefined>>,
>,
DurationUnit,
>,
>;
},
>,
{ now: {}; timeoutId: Timeout
| undefined },
{},
"vira-relative-time-",
"vira-relative-time-",
readonly [],
readonly [],
> = ...
Displays a date/time as a live, relative timestamp (for example
5 minutes ago). The relative string automatically updates over time. Optionally renders the absolute timestamp beneath the relative string.