malcommac/SwiftDate
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones 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: 4137
- days_rel: n/a
- days_push: 1079
- n_releases_24m: 0
Adoption not part of the score
7696 stars · 774 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SwiftDate is a Swift library for parsing, validating, manipulating, comparing, and formatting dates, times, and timezones across Apple platforms and Linux. It offers expressive syntax for date math, component extraction, derived dates, region-aware creation (timezone/calendar/locale), colloquial formatting in 140+ languages, and time period support.
Use cases
- parse date strings in custom or ISO8601 formats in Swift
- format and display dates with timezones and locales in an iOS app
- do date math like adding hours and minutes to a date in Swift
- check if two dates are today, tomorrow, or in the same week
- convert dates between timezones and calendars
- generate relative date strings like '2 hours ago' in Swift
- generate random dates or enumerate date ranges in Swift
When to choose
- You are building an iOS, macOS, or server-side Swift (Vapor/Kitura) app that needs rich date parsing, manipulation, or formatting beyond Foundation's basics
- You need colloquial/relative date formatting across many languages and locales
- You want an expressive, well-tested API for timezone, calendar, and time-period logic in Swift
When to avoid
- Your project is not in Swift (the library targets Swift/Apple platforms and Linux)
- You only need trivial date handling that Foundation's Date and DateFormatter already cover and want zero extra dependencies
- You require a dependency with very recent release activity, as the latest release dates to September 2023
Facets
library · maturity stable
date-time parser developer-tools cross-platform cross-platform date-manipulation date-parsing date-formatting timezone calendar codable time-periods relative-dates swift ios macos linux
1 source
- readme: https://github.com/malcommac/SwiftDate · fetched 2026-08-28 · 1dc42ca7e85c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| malcommac/SwiftDate | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="malcommac/SwiftDate")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem