# time (zidane-ui)

Import: `import { … } from 'zidane-ui'`. Source: [ui/src/time.ts](https://github.com/Tahul/zidane/blob/main/ui/src/time.ts).

## Constants

### `TIME_LABELS`

Constant.

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.

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

Source: [ui/src/time.ts:6](https://github.com/Tahul/zidane/blob/main/ui/src/time.ts#L6)

## Types

### `TimeLabels`

Type.

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

```ts
type TimeLabels = typeof TIME_LABELS
```

Source: [ui/src/time.ts:14](https://github.com/Tahul/zidane/blob/main/ui/src/time.ts#L14)
