82trust / 100
Epoch Convert
by Epoch / ISO converter in Documents & files
x402 APIPassing, checked 1 h ago
Convert between Unix epoch timestamps and ISO 8601 date strings in both directions. Provide either an epoch (seconds or milliseconds) or an ISO date string. Returns both representations plus UTC and date components.
POST https://agent402.tools/api/epoch-convert
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 191 ms typical, 223 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/epoch-convert" \
-H "content-type: application/json" \
-d '{"epoch":1782000000}'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%2Fagent402.tools%2Fapi%2Fepoch-convert
const res = await pay("https://agent402.tools/api/epoch-convert", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"epoch":1782000000}),
});
console.log(await res.json());Example input
{
"epoch": 1782000000
}Example output
{
"components": {
"day": 21,
"hour": 0,
"minute": 0,
"month": 6,
"second": 0,
"year": 2026
},
"epoch": {
"milliseconds": 1782000000000,
"seconds": 1782000000
},
"iso": "2026-06-21T00:00:00.000Z",
"utc": "Sun, 21 Jun 2026 00:00:00 GMT"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 223 ms | $0.001 |
| 5 h ago | Passed | 402 | 193 ms | $0.001 |
| 9 h ago | Passed | 402 | 186 ms | $0.001 |
| 12 h ago | Passed | 402 | 191 ms | $0.001 |
| 17 h ago | Passed | 402 | 186 ms | $0.001 |
| 20 h ago | Passed | 402 | 185 ms | $0.001 |
| 23 h ago | Passed | 402 | 194 ms | $0.001 |
| 28 h ago | Passed | 402 | 315 ms | $0.001 |