convert_time_zone
Pack: timeapi-io · Endpoint: https://gateway.pipeworx.io/timeapi-io/mcp
Convert datetime between zones.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fromTimeZone | string | yes | |
dateTime | string | yes | |
toTimeZone | string | yes | |
dstAmbiguity | string | no |
Example call
Arguments
{
"fromTimeZone": "America/New_York",
"dateTime": "2024-01-15T14:30:00",
"toTimeZone": "Europe/London"
}
curl
curl -X POST https://gateway.pipeworx.io/timeapi-io/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert_time_zone","arguments":{"fromTimeZone":"America/New_York","dateTime":"2024-01-15T14:30:00","toTimeZone":"Europe/London"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('convert_time_zone', {
"fromTimeZone": "America/New_York",
"dateTime": "2024-01-15T14:30:00",
"toTimeZone": "Europe/London"
});
More examples
{
"fromTimeZone": "Asia/Tokyo",
"dateTime": "2024-06-20T10:00:00",
"toTimeZone": "America/Chicago",
"dstAmbiguity": "PICK_EARLIER"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Converted datetime between timezones"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"timeapi-io": {
"url": "https://gateway.pipeworx.io/timeapi-io/mcp"
}
}
}
See Getting Started for client-specific install steps.