spencermountain/spacetime
A lightweight javascript timezone library observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 92
- Release rhythm 78
- Longevity 100
Flags: no_license
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: 61.5
- age_days: 3479
- days_rel: 71
- days_push: 51
- n_releases_24m: 9
Adoption not part of the score
4107 stars · 190 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Spacetime is a lightweight, zero-dependency JavaScript library for calculating dates and times across timezones. It provides a Moment-like immutable API that handles daylight savings, leap years, and hemisphere-aware date math.
Use cases
- convert a date to a remote timezone like Europe/Paris
- calculate how many days until the end of the year
- figure out what time it was 11 hours ago
- check if it's lunchtime in France right now
- add or subtract months while keeping the time-of-day stable across DST shifts
- format dates and times in different timezones without the Intl API
When to choose
- you need timezone-aware date math in a small bundle (~40kb, zero dependencies)
- you want a Moment-like immutable API without Moment's weight
- you need DST, leap-year, and hemisphere handling for most common cases
When to avoid
- you need exhaustive, standards-perfect timezone handling for edge cases
- you need locale-aware formatting or parsing of arbitrary date strings
- you're already using a full-featured date library like date-fns or Luxon
Facets
library · maturity stable
date-time sdk developer-tools web-development cross-platform browser timezone-conversion date-math daylight-savings immutable-api zero-dependencies moment-like nodejs javascript
3 sources
- readme: https://github.com/spencermountain/spacetime · fetched 2026-08-28 · fb8dfa6a1ffb
- homepage: http://spacetime.how/ · fetched 2026-08-29 · 72e83b42b166
- registry_npm: https://registry.npmjs.org/spacetime · fetched 2026-08-29 · 9849b1dd559b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spencermountain/spacetime | main | 89 |
For agents
markdown · JSON · MCP: product_card(name="spencermountain/spacetime")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem