spencermountain/spacetime
Some data may be outdated — see provenance labels.
A lightweight javascript timezone library observed · 2026-09-29
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 84
- 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-10-21. Adoption (stars, forks) is never an input.
- gap_med: 71
- age_days: 3527
- days_rel: 31
- days_push: 22
- n_releases_24m: 10
Adoption not part of the score
4108 stars · 190 forks observed · 2026-09-29
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-09-29 · 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 | 93 |
For agents
markdown · JSON · MCP: product_card(name="spencermountain/spacetime")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem