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