ISO to epoch

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

Convert a canonical RFC 3339 UTC timestamp to an exact integer Unix epoch count in the requested unit.

Use when you need to: ISO date to unix timestamp · RFC 3339 UTC to epoch seconds · convert UTC time to milliseconds.

Decide before calling

Read the versioned contract and the supported scope below. Reuse iso-to-epoch@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 iso-to-epoch@1.0.0 for ISO date to unix timestamp. 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:

{
  "iso": "1970-01-01T00:00:00Z",
  "unit": "seconds"
}

Response:

{
  "result": {
    "epoch": "0",
    "unit": "seconds",
    "standard_version": "POSIX.1-2024 4.19; RFC 3339"
  }
}

How to call it

MCP

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

{
  "id": "iso-to-epoch",
  "version": "1.0.0",
  "input": {
    "iso": "1970-01-01T00:00:00Z",
    "unit": "seconds"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-to-epoch/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"iso":"1970-01-01T00:00:00Z","unit":"seconds"}'

The machine-readable contract is at /v1/tools/iso-to-epoch/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.