# Document format_distance \(\#3214\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a3565225ad097c93c5092b07940699cf6ceefc9c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a3565225ad097c93c5092b07940699cf6ceefc9c

Requested commit: a3565225ad097c93c5092b07940699cf6ceefc9c

Commit: a3565225ad097c93c5092b07940699cf6ceefc9c

Tree: b5160ba2ab8f4ad14299f4cc66a51b119747fd4c

Author: Nate Butler

Committer: GitHub

## Message

```
Document format_distance (#3214)

Adds docs for `ui2::util::format_distance`:
- distance_in_seconds
- distance_string
- naive_format_distance
- naive_format_distance_from_now

These are ports of
[`date-fns`](https://date-fns.org/v2.30.0/docs/formatDistance)'s format
distance utilities

[[PR Description]]

Release Notes:

- N/A
```

## Parents

- [17ff881e7a8d99ab57e80c113e8ea9871c73436d](https://git.cafe/gitcafe/zed/commit/17ff881e7a8d99ab57e80c113e8ea9871c73436d?format=markdown)

- [6f41a77a252eb221a0d11bec16c28a0520c92311](https://git.cafe/gitcafe/zed/commit/6f41a77a252eb221a0d11bec16c28a0520c92311?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a3565225ad097c93c5092b07940699cf6ceefc9c?format=markdown)
