# std/fmt: add fmtDurationSigned · gitcafe/zig

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

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

Visibility: public

Requested revision: f398ac3ee48b35754f51f0bfaff76b6a1e70da77

Requested commit: f398ac3ee48b35754f51f0bfaff76b6a1e70da77

Commit: f398ac3ee48b35754f51f0bfaff76b6a1e70da77

Tree: 4136cd37830bba4f946c8a121ba4e5ed2eba74ab

Author: Isaac Freund

Committer: Veikka Tuominen

## Message

```
std/fmt: add fmtDurationSigned

When working with durations it often makes sense to use signed integers
and allow negative durations, and there is currently no nice way to
format these in std.fmt. This patch adds a simple wrapper for the
existing fmtDurtion to fit this need.

```

## Parents

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

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