Returns current time in any timezone with precise formatting. Call via MCP in Cursor or Windsurf, or hit GET /v1/time/now directly. Specify timezone like "America/New_York" or "UTC" to get ISO 8601 timestamps. Essential for AI agents handling time-sensitive operations across regions without timezone calculation errors.
curl "https://tinyfn.io/v1/time/now" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/time/now', {
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/now',
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 current_time tool with timezone parameter like 'America/Los_Angeles' or 'Europe/London'. Returns ISO 8601 formatted timestamp for that region.
Uses IANA timezone identifiers like 'America/New_York', 'Asia/Tokyo', or 'UTC'. Full list available at IANA timezone database.
Yes, automatically accounts for DST transitions. A request for 'America/New_York' returns EST or EDT depending on current date.
No, each call returns one timezone. Make separate calls for multiple regions, or use the batch time comparison tools for efficiency.
This provides server-side timezone conversion with guaranteed accuracy. Client-side Date.now() depends on user's system timezone settings which may be incorrect.
Get your free API key and start using Current Time in seconds.
Get Free API Key