Skip to content

time

import { … } from 'zidane-ui'ui/src/time.ts

Constants#

TIME_LABELSConstant#

The words of a time, browser-safe: "now", and the month names of a date. zidane's relativeTime (zidane/chat/pure) reads them. DEFAULT_LABELS (labels.tsx) spreads them, so an app overrides them there like any other label.

TypeScript
const TIME_LABELS: { justNow: string; months: readonly string[] }

ui/src/time.ts:6

Types#

TimeLabelsType#

The words zidane's relativeTime reads (TimeWords in zidane/chat/pure).

TypeScript
type TimeLabels = typeof TIME_LABELS

ui/src/time.ts:14