Date Math
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.
Answeringour last check, 2026-11-27
7 of 7checks answered this week
31 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://date-math.datemath.workers.dev/v1/time_buckets
| Category | Everything else |
|---|---|
| Provider host | date-math.datemath.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | valid payment request | 402 | $0.001 | 39 ms |
| 2026-11-26 | valid payment request | 402 | $0.001 | 31 ms |
| 2026-11-25 | valid payment request | 402 | $0.001 | 1199 ms |
| 2026-11-24 | valid payment request | 402 | $0.001 | 24 ms |
| 2026-11-23 | valid payment request | 402 | $0.001 | 1239 ms |
| 2026-11-22 | valid payment request | 402 | $0.001 | 22 ms |
| 2026-11-21 | valid payment request | 402 | $0.001 | 27 ms |
| 2026-11-20 | valid payment request | 402 | $0.001 | 1188 ms |
| 2026-11-19 | valid payment request | 402 | $0.001 | 1156 ms |
| 2026-11-18 | valid payment request | 402 | $0.001 | 32 ms |
| 2026-11-17 | valid payment request | 402 | $0.001 | 1176 ms |
| 2026-11-16 | valid payment request | 402 | $0.001 | 34 ms |
| 2026-11-15 | valid payment request | 402 | $0.001 | 32 ms |
| 2026-11-14 | valid payment request | 402 | $0.001 | 1329 ms |
| 2026-11-13 | valid payment request | 402 | $0.001 | 33 ms |
| 2026-11-12 | valid payment request | 402 | $0.001 | 28 ms |
| 2026-11-11 | valid payment request | 402 | $0.001 | 1264 ms |
| 2026-11-10 | valid payment request | 402 | $0.001 | 26 ms |
Example input (from the provider)
{
"body": {
"bucket": "day",
"from": "2026-10-31",
"timezone": "America/New_York",
"to": "2026-11-03"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"bucket": {
"default": "day",
"enum": [
"minute",
"hour",
"day",
"week",
"month",
"quarter",
"year"
],
"type": "string"
},
"clip": {
"default": false,
"description": "Clip the first and last buckets to [from, to) instead of returning whole buckets flagged partial",
"type": "boolean"
},
"fiscal_year_start": {
"default": 1,
"description": "Month the fiscal year starts (1 = January). Quarters, halves and years follow it; fiscal years are named by the calendar year they end in (start 7: FY2027 = July 2026 \u2013 June 2027)",
"maximum": 12,
"minimum": 1,
"type": "integer"
},
"from": {
"description": "Range start: YYYY-MM-DD (local midnight), local YYYY-MM-DDTHH:MM, or ISO 8601 with offset",
"type": "string"
},
"size": {
"default": 1,
"description": "minute: 1,2,3,4,5,6,10,12,15,20,30; hour: 1,2,3,4,6,8,12. Other buckets: 1",
"maximum": 30,
"minimum": 1,
"type": "integer"
},
"timezone": {
"description": "IANA time zone, e.g. America/New_York (default UTC)",
"type": "string"
},
"to": {
"description": "Range end, exclusive (same formats)",
"type": "string"
},
"week_start": {
"default": "monday",
"description": "First day of the week. monday = ISO weeks (labels like 2026-W46)",
"enum": [
"monday",
"sunday",
"saturday"
],
"type": "string"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"bucket": {
"type": "string"
},
"buckets": {
"items": {
"properties": {
"end": {
"description": "Exclusive",
"type": "string"
},
"end_utc": {
"type": "string"
},
"hours": {
"description": "Real length: 23 or 25 on clock-change days",
"type": "number"
},
"label": {
"description": "2026-11-01, 2026-W45, 2026-11, 2026-Q4, FY2027-Q2, 2026, or a local time like 2026-11-01T01:00-05:00",
"type": "string"
},
"partial": {
"description": "The bucket extends beyond [from, to)",
"type": "boolean"
},
"start": {
"type": "string"
},
"start_utc": {
"type": "string"
}
},
"required": [
"label",
"start",
"end",
"start_utc",
"end_utc",
"hours"
],
"type": "object"
},
"type": "array"
},
"count": {
"type": "integer"
},
"fiscal_year_start": {
"type": "string"
},
"from": {
"type": "string"
},
"size": {
"type": "integer"
},
"timezone": {
"type": "string"
},
"to": {
"type": "string"
},
"week_start": {
"type": "string"
}
},
"required": [
"timezone",
"bucket",
"size",
"from",
"to",
"count",
"buckets"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}