20 releases
| 0.5.1 | Feb 2, 2026 |
|---|---|
| 0.4.9 | Mar 1, 2025 |
| 0.4.6 | Dec 15, 2024 |
| 0.4.4 | Oct 30, 2024 |
| 0.3.4 | Nov 29, 2023 |
#306 in Date and time
147 downloads per month
Used in 20 crates
(12 directly)
1MB
19K
SLoC
IROX-TIME
A date & time library that aims for ease of use using static compile-time types based on the Proleptic Gregorian Calendar.
Goals:
- Provide type-safe, correct, easy conversions between
Epochs - Provide type-safe, correct, easy conversions between the Unix Epoch and the associated Gregorian Date and Time
Non-goals:
- Handle strange edge cases like:
- Handle Time Zones and Daylight Savings Time
Eventually:
- Leap Seconds and UTC Proper
Module Structure
time- Contains the baseTimestruct, describing a standardHours/minutes/secondsframework.datetime- ContainsUTCDateTimestructs, describing aDatewith aTimeepoch- ContainsEpoch,UnixEpoch,GPSEpoch, and others, providing the datum anchor for timestampsUnixTimestamp,GPSTimestamp, etc.format- Date & Time Formatters & Parsersgregorian- ContainsDateandMonth, that describe a gregorian calendar date.
Features
std- adds 'std' support:UnixTimestamp::now() -> UnixTimestampUnixTimestamp::elapsed() -> DurationUTCDateTime::now() ->UTCDateTime- impls of
std::error::Erroron errors
Dependencies
~250–700KB
~16K SLoC