Chronology is an attempt to build a better date and time API for Swift on top of the constructs provided by Foundation.
For more information, please see the wiki:
- An
Instant
represents a singular point in time, independent of any calendaring system. - A
Clock
lets you get the currentInstant
, but can also give you calendrical representations. - A
Value<...>
represents a calendrical value, such as "October 6, 2019". Value
has a whole bunch of methods to perform "adjustments", such as finding the next largest/smallest value, etcValue
also has methods to do type-safe formatting.