# FormatContext

What a formatter may know besides the value: the time now, for relative
times, and the catalogue whose language its words and numbers are written in.

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

## Signature

```ts
import type { FormatContext } from "@mapcairn/core";
 
interface FormatContext
```

## Properties

### catalogue

```ts
readonly catalogue: MessageCatalogue;
```

The active catalogue: its `language` formats numbers and dates, and its keys word a relative time.

### now

```ts
readonly now: number;
```

Epoch milliseconds. Core never reads the clock itself.

## See also

- [`MessageCatalogue`](https://docs.mapcairn.com/api/core/MessageCatalogue.md)

Source: [packages/core/src/layers/formatters.ts:12](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/formatters.ts#L12)
