π u π
a portable Foundation-free library for working with machine time and its human-readable representations
U is not a date computation library; use davedelong.time for that. U is principally concerned with static typing, unit safety, and minimizing binary size. It represents temporal concepts in a persistence-friendly format, optimizing for use cases such as task scheduling in long-running server applications.
One of the paramount goals of this library is to allow other libraries to exchange strongly-typed values with zero overhead without falling back to raw integer representations or linking against large frameworks.
Requirements
The U library requires Swift 6.2 or later.
| Platform | Status |
|---|---|
| π¬ Documentation | |
| π§ Linux | |
| π Darwin | |
| π Darwin (iOS) | |
| π Darwin (tvOS) | |
| π Darwin (visionOS) | |
| π Darwin (watchOS) |