get_time_by_timezone

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/get_time_by_timezone for the schema, then POST the same URL with its arguments for the data.

Get the current date and time in a specific IANA timezone (e.g. “America/New_York”, “Europe/London”, “Asia/Tokyo”).

Parameters

NameTypeRequiredDescription
timezonestringyesIANA timezone string, e.g. “America/New_York”

Example call

Arguments

{
  "timezone": "America/New_York"
}

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":"get_time_by_timezone","arguments":{"timezone":"America/New_York"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_time_by_timezone', {
  "timezone": "America/New_York"
});

More examples

{
  "timezone": "Asia/Tokyo"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "datetime": {
          "type": "string",
          "description": "ISO 8601 datetime in the requested timezone"
        },
        "timezone": {
          "type": "string",
          "description": "IANA timezone name"
        },
        "utc_offset": {
          "type": "string",
          "description": "UTC offset in ±HH:MM format"
        },
        "day_of_week": {
          "type": "number",
          "description": "Day of week (0-6)"
        },
        "day_of_year": {
          "type": "number",
          "description": "Day of year (1-366)"
        },
        "week_number": {
          "type": "number",
          "description": "Week number of the year"
        },
        "is_dst": {
          "type": "boolean"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "datetime",
        "timezone",
        "utc_offset"
      ]
    },
    {
      "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