convert_time

Pack: timezone · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/convert_time for the schema, then POST the same URL with its arguments for the data.

Convert a datetime from one timezone to another. If no time is provided the current time in the source timezone is used.

Parameters

NameTypeRequiredDescription
from_timezonestringyesSource IANA timezone, e.g. “America/New_York”
to_timezonestringyesTarget IANA timezone, e.g. “Europe/Paris”
timestringnoDatetime to convert as “YYYY-MM-DD HH:mm:ss” (optional — defaults to current time in source).

Example call

Arguments

{
  "from_timezone": "America/New_York",
  "to_timezone": "Europe/London"
}

curl

curl -X POST https://gateway.pipeworx.io/timezone/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert_time","arguments":{"from_timezone":"America/New_York","to_timezone":"Europe/London"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('convert_time', {
  "from_timezone": "America/New_York",
  "to_timezone": "Europe/London"
});

More examples

{
  "from_timezone": "America/Los_Angeles",
  "to_timezone": "Asia/Singapore",
  "time": "2024-06-15T14:30:00"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "from_timezone": {
          "type": "string",
          "description": "Source timezone"
        },
        "from_datetime": {
          "type": "string",
          "description": "Source datetime in ISO 8601 format"
        },
        "from_utc_offset": {
          "type": "string",
          "description": "UTC offset of source timezone in ±HH:MM format"
        },
        "to_timezone": {
          "type": "string",
          "description": "Target timezone"
        },
        "to_datetime": {
          "type": "string",
          "description": "Converted datetime in ISO 8601 format"
        },
        "to_utc_offset": {
          "type": "string",
          "description": "UTC offset of target timezone in ±HH:MM format"
        },
        "offset_difference": {
          "type": "string",
          "description": "Difference in UTC offsets in ±HH:MM format"
        },
        "to_is_dst": {
          "type": "boolean"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "from_timezone",
        "from_datetime",
        "to_timezone",
        "to_datetime"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the timezone pack
{
  "mcpServers": {
    "timezone": {
      "url": "https://gateway.pipeworx.io/timezone/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026