dreymonde/Time
🕰 Type-safe time calculations in Swift observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3317
- days_rel: n/a
- days_push: 1580
- n_releases_24m: 0
Adoption not part of the score
1063 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Swift micro-library providing strongly-typed time intervals (e.g. Interval<Minute>) so durations like 10.minutes are type-safe and unit-aware. It supports arithmetic, comparison, and conversion between time units and Foundation's TimeInterval.
Use cases
- represent durations type-safely in Swift
- avoid magic numbers like 10 * 60 for minutes
- do arithmetic on time intervals with different units
- add durations to Date objects
- convert between seconds, minutes, hours, and other time units
When to choose
- you write Swift or iOS code with time calculations and want compile-time unit safety
- you want readable duration expressions like 10.minutes instead of raw TimeInterval doubles
When to avoid
- you need calendar-aware date math (months, years, time zones) - use Foundation's Calendar
- your project is not in Swift
Facets
library · maturity maintenance
date-time type-system developer-tools cross-platform time-intervals type-safe-time swift-package swift ios macos
2 sources
- readme: https://github.com/dreymonde/Time · fetched 2026-08-28 · 753b37eefd4a
- homepage: https://medium.com/anysuggestion · fetched 2026-08-29 · e9d83b93ba12
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dreymonde/Time | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem