← Back to directory

Date Math: Split a time range into minute, hour, day, week, month, quarter or ye...

https://date-math.datemath.workers.dev/v1/time_buckets

Overview

Date Math: Split a time range into minute, hour, day, week, month, quarter or year buckets with exact start and end times in a time zone. DST-aware (23- and 25-hour days, repeated and skipped hours), ISO or Sunday/Saturday weeks, fiscal quarters, partial first and last buckets flagged or clipped. Up to 1,000 buckets. Use for chart axes, time-series grouping and filling empty periods in dashboards.

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Date Math
Source bazaar
Indexed 2026-11-10 15:08:49

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "bucket": "day", "from": "2026-10-31", "timezone": "America/New_York", "to": "2026-11-03" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "bucket": "day", "buckets": [ { "end": "2026-11-01T00:00:00-04:00", "end_utc": "2026-11-01T04:00:00Z", "hours": 24, "label": "2026-10-31", "start": "2026-10-31T00:00:00-04:00", "start_utc": "2026-10-31T04:00:00Z" } ], "count": 3, "from": "2026-10-31T00:00:00-04:00", "size": 1, "timezone": "America/New_York", "to": "2026-11-03T00:00:00-05:00" }, "type": "json" }