chrono-zig
Chrono: Timezone-aware date and time handling
Chrono aims to provide all functionality needed to do correct operations on dates and times in the proleptic Gregorian calendar:
- The
DateTimetype is timezone-aware by default, with separate timezone-naive types. - Operations that may produce an invalid or ambiguous date and time return
OptionorMappedLocalTime - Configurable parsing and formatting with an
strftimeinspired date and time formatting syntax. - The
Localtimezone works with the current timezone of the OS. - Types and operations are implemented to be reasonably efficient.
Timezone data is not shipped with chrono by default to limit binary sizes. Use the companion crate
Chrono-TZ or tzfile for
full timezone support.
Documentation
Experimental, Documentation is not fully prepared.
Limitations
- Only the proleptic Gregorian calendar (i.e. extended to support older dates) is supported.
- Date types are limited to about +/- 262,000 years from the common epoch.
- Time types are limited to nanosecond accuracy.
- Leap seconds can be represented, but Chrono does not fully support them.
- No
deprecatedfunctions are no longer maintained.
Module features
Zig version requirements
The Minimum Supported Zig Version is currently Zig 0.14.0.
License
This project is licensed under
Disclaimer
This project is a port of the rust version of
Chrono.
If the rust version have any bug that can have in this project.