Skip to content
Fourohtwo

Date and time calculations in pure code

api.sitecheck-api.workers.dev/api/date/calc

Date and time calculations in pure code. op=diff: calendar years, months and days between two dates, and the total days. op=add or subtract: move a date by years, months, weeks, days, hours or minutes (month ends are clamped). op=info: weekday, ISO week, day of year, quarter, and age from birthDate. op=tz: a local date-time in one IANA time zone shown in another. Impossible dates are a 400 with th

BaseSolanaArcPolygonArbitrumWorld Chain+1Answering
GEThttps://api.sitecheck-api.workers.dev/api/date/calc

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.sitecheck-api.workers.dev/api/date/calc?from=2000-02-29&op=diff&to=2026-10-15");
console.log(await res.json());

Example input

{
  "from": "2000-02-29",
  "op": "diff",
  "to": "2026-10-15"
}

More from SiteCheckProvider status