Time/Timezone Utilities

Convert Timezone

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.

API Endpoint

GET /v1/time/convert

Code Examples

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)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I convert datetime between timezones using MCP?

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.

What datetime formats does the timezone converter accept?

Accepts ISO 8601 strings, Unix timestamps, and common formats like '2024-01-15 14:30:00'. Always returns standardized ISO format with timezone info.

Does timezone conversion handle daylight saving time automatically?

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.

Can I convert between abbreviated timezone codes like EST and PST?

Use full IANA timezone names like 'America/New_York' or 'Europe/London' for accuracy. Abbreviations can be ambiguous due to daylight saving variations.

What happens when converting datetime during DST transition periods?

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.

Try Convert Timezone Now

Get your free API key and start using Convert Timezone in seconds.

Get Free API Key