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
Epoch
s - 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
time
- Contains the baseTime
struct, describing a standardHours/minutes/seconds
framework.datetime
- ContainsUTCDateTime
structs, describing aDate
with aTime
epoch
- ContainsEpoch
,UnixEpoch
,GPSEpoch
, and others, providing the datum anchor for timestampsUnixTimestamp
,GPSTimestamp
, etc.format
- Date & Time Formatters & Parsersgregorian
- ContainsDate
andMonth
, that describe a gregorian calendar date.
std
- adds 'std' support:UnixTimestamp::now() -> UnixTimestamp
UnixTimestamp::elapsed() -> Duration
UTCDateTime::now() ->UTCDateTime
- impls of
std::error::Error
on errors