Converts datetime values between any timezone with precise accuracy. Use via MCP in Cursor or Claude Code, or call GET /v1/time/convert directly. Pass a datetime string and source/target timezones to get instant conversion. Handles daylight saving transitions automatically, ensuring your scheduling logic never breaks across regions.
curl "https://tinyfn.io/v1/time/convert" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/time/convert', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/time/convert',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's time/timezone tools:
{
"mcpServers": {
"tinyfn-time": {
"url": "https://tinyfn.io/mcp/time",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Call the convert_timezone tool with datetime, from_timezone, and to_timezone parameters. Works seamlessly in Cursor, Windsurf, and other MCP-enabled editors for scheduling features.
Accepts ISO 8601 strings, Unix timestamps, and common formats like '2024-01-15 14:30:00'. Always returns standardized ISO format with timezone info.
Yes, automatically accounts for DST transitions and historical timezone changes. No need to manually calculate offsets or worry about edge cases during spring/fall transitions.
Use full IANA timezone names like 'America/New_York' or 'Europe/London' for accuracy. Abbreviations can be ambiguous due to daylight saving variations.
Returns the correct local time based on official timezone rules. Handles ambiguous hours (fall back) and non-existent hours (spring forward) according to standard conventions.
Get your free API key and start using Convert Timezone in seconds.
Get Free API Key