ISO date-time compare

iso-datetime-compare · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed

Compare two strict UTC ISO-8601 datetimes and return -1, 0, or 1.

Use when you need to: iso datetime compare · compare two utc datetimes · datetime ordering.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": "2026-09-15T12:00:00Z",
  "b": "2026-09-15T12:00:01Z"
}

Response:

{
  "result": {
    "comparison": -1
  }
}

How to call it

MCP

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

{
  "id": "iso-datetime-compare",
  "version": "1.0.0",
  "input": {
    "a": "2026-09-15T12:00:00Z",
    "b": "2026-09-15T12:00:01Z"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-datetime-compare/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":"2026-09-15T12:00:00Z","b":"2026-09-15T12:00:01Z"}'

The machine-readable contract is at /v1/tools/iso-datetime-compare/versions/1.0.0.

CLI

node cli.mjs run iso-datetime-compare 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.