https://github.com/nektro/zig-time
A date and time parsing and formatting library for Zig.
https://github.com/nektro/zig-time
time wristwatch zig zig-package
Last synced: about 1 month ago
JSON representation
A date and time parsing and formatting library for Zig.
- Host: GitHub
- URL: https://github.com/nektro/zig-time
- Owner: nektro
- License: mit
- Created: 2021-10-17T00:34:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-21T20:33:44.000Z (about 2 months ago)
- Last Synced: 2025-05-21T21:35:10.690Z (about 2 months ago)
- Topics: time, wristwatch, zig, zig-package
- Language: Zig
- Homepage:
- Size: 35.2 KB
- Stars: 60
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - nektro/zig-time
- awesome-zig - zig-time🗒️A date and time parsing and formatting library for Zig
README
# zig-time

[](https://github.com/nektro/zig-time/blob/master/LICENSE)
[](https://github.com/sponsors/nektro)
[](https://ziglang.org/)
[](https://github.com/nektro/zigmod)Exposes a `DateTime` structure that can be initialized and acted upon using various methods. All public methods return a new structure.
Currently handles dates and times based on the [Proleptic Gregorian calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar) in adherence to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601).
Does not currently support time zones outside of UTC.
Does not handle leap seconds.
See the `FormatSeq` structure for display information on what to pass as a `fmt` string.