ISO date-time truncate

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

Truncate a strict UTC ISO-8601 datetime toward UTC zero at day, hour, minute, or second.

Use when you need to: iso datetime truncate · truncate utc datetime · floor iso datetime to unit.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "datetime": "2026-09-11T12:34:56Z",
  "unit": "hour"
}

Response:

{
  "result": {
    "datetime": "2026-09-11T12:00:00Z"
  }
}

How to call it

MCP

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

{
  "id": "iso-datetime-truncate",
  "version": "1.0.0",
  "input": {
    "datetime": "2026-09-11T12:34:56Z",
    "unit": "hour"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-datetime-truncate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"datetime":"2026-09-11T12:34:56Z","unit":"hour"}'

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

CLI

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

Get the client at /clients/cli/.