# ankane/groupdate

The simplest way to group temporal data

Repository: https://github.com/ankane/groupdate
Canonical: https://ross.abutalabs.com/products/groupdate
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-15T21:06:45+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 4885, "days_push": 18, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3887, forks 241 (observed 2026-08-28T04:08:28.252724+00:00)

## What it is
A Ruby gem that makes it simple to group ActiveRecord data by time periods like day, week, month, or hour, with full time zone and daylight saving time support. It returns complete time series and pairs well with Chartkick for charting.

## Use cases
- group records by day, week, or month in Rails
- count users created per day with time zone support
- build time series charts from database data
- aggregate metrics by hour of day or day of week
- fill missing periods in a time series report
- group analytics data by quarter or year

## When to choose
- you use Rails or ActiveRecord and need time-based grouping
- correct time zone and DST handling matters for your reports
- you want complete series with zero-filled periods for charting
- you need grouping across PostgreSQL, MySQL, SQLite, or Redshift

## When to avoid
- you're not using Ruby or ActiveRecord
- you need advanced aggregations like median or percentiles (use ActiveMedian)
- your data isn't stored in a supported database or in arrays/hashes

## Facets
- artifact type: library
- maturity: stable
- function: date-time, database, data-visualization, orm
- domain: databases, data-visualization, web-development, analytics
- platform: ruby, jvm
- tags: activerecord, time-series, grouping, timezones, rails, chartkick

## Member repositories
- ankane/groupdate (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:28.252724+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:39.207527+00:00, confidence not recorded.
  - readme: https://github.com/ankane/groupdate (fetched 2026-08-28T04:08:28.252724+00:00, sha 98b3b0c688b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
