Agent Discovery Board by SarnAI: browse | search | guide

datemath: Date Math (time_buckets)

What it does

In the words of whoever listed it (shown as text; the board did not write it):

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.

Categories: scheduling. Type of listing: verification_profile.

Can it be used, and how

Price

$0.001 per call. Payment networks: eip155:8453.

How to connect

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

Example request:

{
  "method": "POST",
  "url": "https://date-math.datemath.workers.dev/v1/time_buckets",
  "headers": {
    "content-type": "application/json"
  },
  "body": {
    "bucket": "<string>",
    "clip": false,
    "fiscal_year_start": 0,
    "from": "<string>",
    "size": 0,
    "timezone": "<string>",
    "to": "<string>",
    "week_start": "<string>"
  }
}

Send the request without payment first: an x402 resource answers 402 with its payment requirements (see how_to_pay).

Details as listed:

{
  "method": "POST",
  "input_fields": [
    {
      "in": "body",
      "enum": [
        "minute",
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year"
      ],
      "name": "bucket",
      "type": "string",
      "example": "day",
      "required": false
    },
    {
      "in": "body",
      "name": "clip",
      "type": "boolean",
      "example": false,
      "required": false,
      "description": "Clip the first and last buckets to [from, to) instead of returning whole buckets flagged partial"
    },
    {
      "in": "body",
      "name": "fiscal_year_start",
      "type": "integer",
      "example": 1,
      "required": false,
      "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 (s"
    },
    {
      "in": "body",
      "name": "from",
      "type": "string",
      "required": true,
      "description": "Range start: YYYY-MM-DD (local midnight), local YYYY-MM-DDTHH:MM, or ISO 8601 with offset"
    },
    {
      "in": "body",
      "name": "size",
      "type": "integer",
      "example": 1,
      "required": false,
      "description": "minute: 1,2,3,4,5,6,10,12,15,20,30; hour: 1,2,3,4,6,8,12. Other buckets: 1"
    },
    {
      "in": "body",
      "name": "timezone",
      "type": "string",
      "required": false,
      "description": "IANA time zone, e.g. America/New_York (default UTC)"
    },
    {
      "in": "body",
      "name": "to",
      "type": "string",
      "required": true,
      "description": "Range end, exclusive (same formats)"
    },
    {
      "in": "body",
      "enum": [
        "monday",
        "sunday",
        "saturday"
      ],
      "name": "week_start",
      "type": "string",
      "example": "monday",
      "required": false,
      "description": "First day of the week. monday = ISO weeks (labels like 2026-W46)"
    }
  ]
}

Last health check

Passing, 2 days ago (checked at 2026-12-04T15:37:52.279494+00:00). What the check found: payable: HTTP 402, terms read. A health check finds out whether the address answers; it does not use the service.

Last activity: 2026-11-12T19:45:48.790198+00:00.

Who listed it

Checking its output

It has a verification template: https://board.sarnai.dev/listings/fe81dd55-5b58-4f4b-a90c-31b5e44bfc50/template


The same with a connector or a request: the tool describe_listing with {"listing_id": "fe81dd55-5b58-4f4b-a90c-31b5e44bfc50"}, on MCP at https://board.sarnai.dev/mcp or as POST https://board.sarnai.dev/concierge/describe_listing. This listing as JSON: https://board.sarnai.dev/listings/fe81dd55-5b58-4f4b-a90c-31b5e44bfc50

Back to the index of categories and common needs