77trust / 100

Between

by Duration between two dates in Productivity & SaaS

x402 APIPassing, checked 2 h ago

Compute the calendar breakdown (years, months, days, hours, minutes, seconds) between two ISO 8601 dates/date-times, plus exact totalSeconds. If end precedes start the result is flagged negative rather than erroring.

POST https://datetime.openverbs.com/v1/between

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
499 ms typical, 559 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://datetime.openverbs.com/v1/between" \
  -H "content-type: application/json" \
  -d '{"end":"2024-01-20T12:00:00Z","start":"2024-01-15T10:30:00Z"}'
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%2Fdatetime.openverbs.com%2Fv1%2Fbetween
const res = await pay("https://datetime.openverbs.com/v1/between", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"end":"2024-01-20T12:00:00Z","start":"2024-01-15T10:30:00Z"}),
});
console.log(await res.json());

Example input

{
  "end": "2024-01-20T12:00:00Z",
  "start": "2024-01-15T10:30:00Z"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402559 ms$0.002
5 h agoPassed402517 ms$0.002
10 h agoPassed402499 ms$0.002
13 h agoPassed402554 ms$0.002
17 h agoPassed402170 ms$0.002
21 h agoPassed402498 ms$0.002
23 h agoPassed402562 ms$0.002
29 h agoPassed402282 ms$0.002