71trust / 100

Converters Unix Timestamp Converter

by AgentTools in Documents & files

x402 APIFailing, checked 1 h ago

Convert Unix epoch timestamps to ISO/UTC dates and back. Millisecond timestamps are detected automatically; invalid dates are rejected with clear errors. Use this when an agent needs to epoch seconds ↔ human dates, both directions.

GET https://agenttools-hub.vercel.app/api/v1/converters/unix-timestamp-converter

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
66.7%
Response time
138 ms typical, 138 ms slowest 5%
Last check
1 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/converters/unix-timestamp-converter?op=to_date&value=1735689600"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fconverters%2Funix-timestamp-converter
const res = await pay("https://agenttools-hub.vercel.app/api/v1/converters/unix-timestamp-converter?op=to_date&value=1735689600");
console.log(await res.json());

Example input

{
  "op": "to_date",
  "value": "1735689600"
}

Example output

{
  "result": {
    "answer": "2025-01-01T00:00:00.000Z",
    "answerLabel": "1735689600 → UTC",
    "details": [
      {
        "label": "Seconds",
        "value": "1735689600"
      },
      {
        "label": "Milliseconds",
        "value": "1735689600000"
      },
      {
        "label": "Date only (UTC)",
        "value": "2025-01-01"
      },
      {
        "label": "Day of week (UTC)",
        "value": "Wed"
      }
    ],
    "steps": [
      "Detected seconds",
      "new Date(1735689600000).toISOString()"
    ],
    "value": 1735689600000
  },
  "tool": "unix-timestamp-converter"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoExpected HTTP 402, got 30830860 ms-
4 h agoPassed402150 ms$0.002
9 h agoPassed402138 ms$0.002