Local interval resolve

local-interval-resolve · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed

Resolve a zoned local start/end pair to exact millisecond instants under explicit gap and overlap policies.

Use when you need to: resolve local interval to instants · apply DST gap policy to interval · apply overlap policy to local endpoints.

Decide before calling

Read the versioned contract and the supported scope below. Reuse local-interval-resolve@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use local-interval-resolve@1.0.0 for resolve local interval to instants. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "start_local": "2025-01-15T10:00:00",
  "end_local": "2025-01-15T11:00:00",
  "zone": "UTC",
  "ambiguity_policy": "earlier",
  "gap_policy": "reject",
  "caller_rule_version": "rules-1"
}

Response:

{
  "result": {
    "standard_version": "RFC9557/RFC3339/ISO8601-1:2019",
    "data_version": "iana-tzdb-2025b-subset-nyc",
    "caller_rule_version": "rules-1",
    "canonical_zone": "UTC",
    "start": {
      "instant_ms": "1736935200000",
      "offset_seconds": 0,
      "resolution": "exact"
    },
    "end": {
      "instant_ms": "1736938800000",
      "offset_seconds": 0,
      "resolution": "exact"
    }
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "local-interval-resolve",
  "version": "1.0.0",
  "input": {
    "start_local": "2025-01-15T10:00:00",
    "end_local": "2025-01-15T11:00:00",
    "zone": "UTC",
    "ambiguity_policy": "earlier",
    "gap_policy": "reject",
    "caller_rule_version": "rules-1"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/local-interval-resolve/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"start_local":"2025-01-15T10:00:00","end_local":"2025-01-15T11:00:00","zone":"UTC","ambiguity_policy":"earlier","gap_policy":"reject","caller_rule_version":"rules-1"}'

The machine-readable contract is at /v1/tools/local-interval-resolve/versions/1.0.0.

CLI

node cli.mjs run local-interval-resolve 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.