# WritersLogic Time Bucket Check

> WritersLogic Time Bucket Check is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

For a time zone and date range, identifies DST offset transitions, skipped/ambiguous hourly labels, and non-standard day lengths to prevent errors when grouping metrics or billing by local hour.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/time-bucket-check?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-time-bucket-check-60b056fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MBD6tuFivq9kyf_2Zz9Nx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-time-bucket-check-60b056fc -d '<json body>'
```

Example prompt: Before I aggregate our hourly usage metrics by local time, check the America/New_York timezone from 2025-01-01 to 2025-12-31 for any spring-forward or fall-back hours, non-standard day lengths, and validate these labels I've already generated: 2025-03-09T02:00 and 2025-11-02T01:00.

## When to prefer this

Use this endpoint when an AI agent needs to safely aggregate, bucket, or validate data by local hour or day before processing, and must identify DST-related pitfalls (skipped hours, duplicate hours, non-24-hour days) in a specific timezone and date range. It is especially valuable for billing, metrics, and scheduling systems where local-time grouping errors could cause data loss or double-counting. It does not perform the bucketing itself — it surfaces the anomalies so the agent can apply the appropriate policy.

## Known failure modes

- Invalid or unrecognized timezone identifier returns an error
- Date range exceeding 1100 days is rejected
- More than 500 labels submitted returns a validation error
- Malformed label format (not YYYY-MM-DDTHH:00) causes rejection
- from date after to date returns an error
- Payment failure via x402 protocol prevents processing

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns a structured report covering: all DST offset transitions in the requested date range with their type (spring-forward or fall-back); a list of hourly labels that do not exist in local time (skipped during spring-forward); a list of hourly labels that are ambiguous (occur twice during fall-back); a list of non-standard-length days (23h, 24.5h, or 25h). If caller-supplied labels are provided, each label is flagged as valid, non-existent, or ambiguous.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10,
   "description": "Last local date, inclusive."
  },
  "from": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "maxLength": 10,
   "description": "First local date, inclusive."
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^\\d{4}-\\d{2}-\\d{2}[Tt ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?$",
    "maxLength": 30
   },
   "maxItems": 500,
   "description": "Local hour labels to check, e.g. 2026-03-08T02:00."
  },
  "timeZone": {
   "type": "string",
   "pattern": "^[A-Za-z][A-Za-z0-9_+-]*(/[A-Za-z0-9_+-]+){0,2}$",
   "maxLength": 64
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-time-bucket-check-60b056fc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
