# Add std.fmt.formatDuration and std.fmt.duration \(\#7297\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/fc10c9c4ce40570d0abeda764f1bd76b3e79af61)

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

Visibility: public

Requested revision: fc10c9c4ce40570d0abeda764f1bd76b3e79af61

Requested commit: fc10c9c4ce40570d0abeda764f1bd76b3e79af61

Commit: fc10c9c4ce40570d0abeda764f1bd76b3e79af61

Tree: feb1949f3a4360bda1775fedd1b22ca0d6292157

Author: Jonathan Knezek

Committer: GitHub

## Message

```
Add std.fmt.formatDuration and std.fmt.duration (#7297)

`formatDuration` works on a writer, and `duration` wraps a u64 to allow pleasant injection into format strings.

```

## Parents

- [025f1559a023d6a1c783d4441eb1cb897797b74a](https://git.cafe/gitcafe/zig/commit/025f1559a023d6a1c783d4441eb1cb897797b74a?format=markdown)

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