# \(breaking\) std.time fixups and API changes · gitcafe/zig

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

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

Visibility: public

Requested revision: 53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f

Requested commit: 53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f

Commit: 53d011fa1a7bfb2389e3677e1f6fcbe7a678e05f

Tree: 6dc248d8606088f7a288c00f6ccef78290229cf4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
(breaking) std.time fixups and API changes

Remove the constants that assume a base unit in favor of explicit
x_per_y constants.

nanosecond calendar timestamps now use i128 for the type. This affects
fs.File.Stat, std.time.nanoTimestamp, and fs.File.updateTimes.

calendar timestamps are now signed, because the value can be less than
the epoch (the user can set their computer time to whatever they wish).

implement std.os.clock_gettime for Windows when clock id is
CLOCK_CALENDAR.

```

## Parents

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

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