78trust / 100

Timezone Convert

by Schedule & Timezone Tools in Weather & location

x402 APIPassing, checked 2 h ago

Timezone converter — resolve civil-time daylight-saving (DST) folds or gaps and convert one local time between IANA zones.

POST https://schedule-tools.use.x402atlas.com/timezone-convert

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
446 ms typical, 557 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://schedule-tools.use.x402atlas.com/timezone-convert" \
  -H "content-type: application/json" \
  -d '{"ambiguous_time":"later","destination_timezone":"Europe/London","local_time":"2024-11-03T01:30:00","nonexistent_time":"reject","source_timezone":"America/New_York"}'
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%2Fschedule-tools.use.x402atlas.com%2Ftimezone-convert
const res = await pay("https://schedule-tools.use.x402atlas.com/timezone-convert", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"ambiguous_time":"later","destination_timezone":"Europe/London","local_time":"2024-11-03T01:30:00","nonexistent_time":"reject","source_timezone":"America/New_York"}),
});
console.log(await res.json());

Example input

{
  "ambiguous_time": "later",
  "destination_timezone": "Europe/London",
  "local_time": "2024-11-03T01:30:00",
  "nonexistent_time": "reject",
  "source_timezone": "America/New_York"
}

Example output

{
  "algorithm_version": "schedule-v1",
  "ambiguous_time": "later",
  "destination": {
    "abbreviation": "GMT",
    "local_time": "2024-11-03T06:30:00+00:00",
    "offset_seconds": 0,
    "timezone": "Europe/London"
  },
  "destination_timezone": "Europe/London",
  "go_toolchain_version": "go1.26.3",
  "iana_tzdata_version": "2026a",
  "input_local": "2024-11-03T01:30:00",
  "nonexistent_time": "reject",
  "operation": "timezone-convert",
  "resolved_utc": "2024-11-03T06:30:00Z",
  "source": {
    "abbreviation": "EST",
    "local_time": "2024-11-03T01:30:00-05:00",
    "offset_seconds": -18000,
    "timezone": "America/New_York"
  },
  "source_timezone": "America/New_York",
  "tzdata_source": "bridge-embedded",
  "warnings": []
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402743 ms$0.005
5 h agoPassed402446 ms$0.005
9 h agoPassed402452 ms$0.005
12 h agoPassed402557 ms$0.005
16 h agoPassed402447 ms$0.005
20 h agoPassed402445 ms$0.005
23 h agoPassed402418 ms$0.005
28 h agoPassed402399 ms$0.005
31 h agoPassed402365 ms$0.005
34 h agoPassed402506 ms$0.005
39 h agoPassed402417 ms$0.005