Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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.