Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 months 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T23:12:27.000Z (3 months ago)
- Last Synced: 2024-10-15T02:33:39.242Z (about 2 months ago)
- Topics: time, wristwatch, zig, zig-package
- Language: Zig
- Homepage:
- Size: 33.2 KB
- Stars: 42
- Watchers: 4
- Forks: 8
- 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
![loc](https://sloc.xyz/github/nektro/zig-time)
[![license](https://img.shields.io/github/license/nektro/zig-time.svg)](https://github.com/nektro/zig-time/blob/master/LICENSE)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.