← Back to Abstract
GET/v1/convert_time

Convert Time

Convert time between two locations or timezones.

Abstract·$0.002 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "abstractapi/timezone", path: "/v1/convert_time", query: { "base_location": "example", "target_location": "example" } }); console.log(output);

Query parameters

base_locationrequired
string

The source location

base_datetime
string

Datetime to convert (defaults to now)

target_locationrequired
string

The target location

    Orthogonal - Giving AI agents the tools they need.