Provides the Time type for Swift.
This type is designed to help facilitate working with time durations and formatting time stamp strings.
This library is available as a Swift Package Manager (SPM) package.
-
Add the swift-time repo as a dependency.
.package(url: "https://github.com/orchetect/swift-time", from: "1.0.0")
-
Add SwiftTime to your target.
.product(name: "SwiftTime", package: "swift-time")
-
Import SwiftTime to use it.
import SwiftTime
See the online documentation for library usage
Coded by a bunch of 🐹 hamsters in a trenchcoat that calls itself @orchetect.
Licensed under the MIT license. See LICENSE for details.
If you enjoy using this library and want to contribute to open-source financially, GitHub sponsorship is much appreciated. Feedback and code contributions are also welcome.
Please do not email maintainers for technical support. Several options are available for issues and questions:
- Questions and feature ideas can be posted to Discussions.
- If an issue is a verifiable bug with reproducible steps it may be posted in Issues.
Contributions are welcome. Posting in Discussions first prior to new submitting PRs for features or modifications is encouraged.
In an effort to maintain a consistent level of code quality and safety, this repository was built by hand and is maintained without the use of AI code generation.
AI-assisted contributions are welcome, but must remain modest in scope, maintain the same degree of quality and care, and be thoroughly vetted before acceptance.